I was suprised to see FxCop complaining that I wasn't specifying a CultureInfo in the following:
string s = day.ToString("ddd");
Surely the format string param in ToString
is completely independent of CultureInfo
? Is there any way which CultureInfo
could affect the returned string?
EDIT: sorry, this is a total fail of a question. It's obvious that "ddd"
should be dependent on culture settings. I was really thinking more of a case like DateTime.Now.ToString("dd-MM-yy")
, but it looks like FxCop doesn't in fact complain in that instance.