I\'m running a beta version of ReSharper, and it\'s giving me warnings for the following code:
int id;
// ...
DoSomethingWith(id.ToString());
I would have said no, but on checking MSDN Int32.ToString() there's this:
The return value is formatted with the general numeric format specifier ("G") and the NumberFormatInfo object for the current culture.
So there's a surprise.
The question should be why doesn't the current Resharper suggest this?