U
Uri Dor
Hi, everyone,
The question is whether there is (or can be) an FxCop rule that makes
sure I don't do this:
String.Format("{0}-{1}-{2}", 5);
Or similar things.
Some explanations:
1) of course I only mean cases where the format string is a constant
string literal in the code - that's 99% of the cases anyway
2) similar cases are Console.Write(), etc., I know
The question is whether there is (or can be) an FxCop rule that makes
sure I don't do this:
String.Format("{0}-{1}-{2}", 5);
Or similar things.
Some explanations:
1) of course I only mean cases where the format string is a constant
string literal in the code - that's 99% of the cases anyway
2) similar cases are Console.Write(), etc., I know