Hi,
If I have code like
int i = 10;
string s = "Number is " + i.ToString();
FxCop wants me to put an IFormatProvider to ToString().
If I have:
int i = 10;
string s = "Number is " + i;
What is going on there? ToString() must be called implicitly, right? So what
IFormatProvider is being passed to the implicit call to ToString()?
I'm changing my ToString() calls because of FxCop. I'm basically adding
ToString(CultureInfo.CurrentCulture) or
ToString(CultureInfo.InvariantCulture). I'm also considering not calling
ToString() when not explicitly needed; like in the 2 lines code above.
Thanks,
Michael