Convert.ToString(Object,IFormatProvider)

Hi Guys..

Please help me on this..

What's the difference between Convert.ToString(Object) method and Convert.ToString(Object,IFormatProvider).

And how to implement the method Convert.ToString(Object,IFormatProvider) in my code.

I get the following error when testing my code with FxCop:

"MyClass makes a call to System.Convert.ToInt32(System.Object) that does not explicitly provide an IFormatProvider. This should be replaced with a call to System.Convert.ToInt32(System.Object,System.IFormatProvider)"

Ex: This is how I've implemented my code.

Id= Convert.ToInt32(dataRowItem["FlPlnCmpntDefID"]);

Thanks in Advance.

Yogi



Answer this question

Convert.ToString(Object,IFormatProvider)