Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
QuestionCheck MICR Pin
Saamir28-Aug-07 8:19
Saamir28-Aug-07 8:19 
Questionwhich is more faster Embedded Control or External Pin
I Believe In GOD28-Aug-07 7:14
I Believe In GOD28-Aug-07 7:14 
AnswerRe: which is more faster Embedded Control or External Pin
Scott Dorman28-Aug-07 7:20
professionalScott Dorman28-Aug-07 7:20 
GeneralRe: which is more faster Embedded Control or External Pin
I Believe In GOD28-Aug-07 7:42
I Believe In GOD28-Aug-07 7:42 
AnswerRe: which is more faster Embedded Control or External Pin
led mike28-Aug-07 7:22
led mike28-Aug-07 7:22 
GeneralRe: which is more faster Embedded Control or External Pin
I Believe In GOD28-Aug-07 7:45
I Believe In GOD28-Aug-07 7:45 
AnswerRe: which is more faster Embedded Control or External Pin
Daniel Turini28-Aug-07 10:51
Daniel Turini28-Aug-07 10:51 
QuestionConverting numbers Pin
Le centriste28-Aug-07 6:48
Le centriste28-Aug-07 6:48 
Hi all

I have to convert a string into a System.Decimal instance, using the System.convert.ChangeType method.

The problem is that I would like to make the conversion parameterizable, because the inputs come from different places and formats change with the source

I have configuration files telling how to parse a given source. For dates, I use the CultureInfo specified as strings in the config files (en-US, for instance).

This works fine with the majority of numbers, but some numbers come with parenthesis surrounding them (to indicate negative values). This is not understandable to Convert.ChangeType method.

So, I need a way to continue using the same method, but I will need to provide my own IFormatProvider implementation. I looked at the documentation, but I can only see an example returning an ICustomFormatter instance, which is used to convert an object to a string.

What I need is an implementation that would return something usable by Convert.ChangeType. Any article, tutorial on how to do this?

Thank you,
Michel

-----

If atheism is a religion, then not collecting stamps is a hobby. -- Unknown

God is the only being who, to rule, does not need to exist. -- Charles Baudelaire

AnswerRe: Converting numbers Pin
Scott Dorman28-Aug-07 7:02
professionalScott Dorman28-Aug-07 7:02 
GeneralRe: Converting numbers Pin
Le centriste28-Aug-07 7:04
Le centriste28-Aug-07 7:04 
GeneralRe: Converting numbers Pin
Scott Dorman28-Aug-07 7:10
professionalScott Dorman28-Aug-07 7:10 
GeneralRe: Converting numbers Pin
Le centriste28-Aug-07 7:14
Le centriste28-Aug-07 7:14 
GeneralRe: Converting numbers Pin
Scott Dorman28-Aug-07 7:23
professionalScott Dorman28-Aug-07 7:23 
GeneralRe: Converting numbers Pin
DavidNohejl29-Aug-07 1:01
DavidNohejl29-Aug-07 1:01 
QuestionIcons in ListBox Pin
spotl28-Aug-07 6:46
spotl28-Aug-07 6:46 
AnswerRe: Icons in ListBox Pin
Scott Dorman28-Aug-07 7:06
professionalScott Dorman28-Aug-07 7:06 
AnswerRe: Icons in ListBox Pin
I Believe In GOD28-Aug-07 7:20
I Believe In GOD28-Aug-07 7:20 
QuestionSet readonly attribute of an class property at runtime Pin
Paw Jershauge28-Aug-07 6:26
Paw Jershauge28-Aug-07 6:26 
AnswerRe: Set readonly attribute of an class property at runtime Pin
J4amieC28-Aug-07 6:42
J4amieC28-Aug-07 6:42 
GeneralRe: Set readonly attribute of an class property at runtime Pin
Paw Jershauge28-Aug-07 10:12
Paw Jershauge28-Aug-07 10:12 
GeneralRe: Set readonly attribute of an class property at runtime Pin
led mike28-Aug-07 11:04
led mike28-Aug-07 11:04 
GeneralRe: Set readonly attribute of an class property at runtime Pin
Paw Jershauge28-Aug-07 20:27
Paw Jershauge28-Aug-07 20:27 
AnswerRe: Set readonly attribute of an class property at runtime Pin
led mike28-Aug-07 7:21
led mike28-Aug-07 7:21 
GeneralRe: Set readonly attribute of an class property at runtime Pin
Paw Jershauge28-Aug-07 10:15
Paw Jershauge28-Aug-07 10:15 
QuestionControl is locked, how to unlock? [modified] Pin
Jordanwb28-Aug-07 5:54
Jordanwb28-Aug-07 5:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.