string myString = string.Format("{0}{1}", "foo");
This compiles but fails at runtime. I know why, don’t worry. Anyone knows of a macro or a tool that would check my whole solution to find every occurrence of this… distraction while coding? Something simple that only checks if the expression is not a variable would suffice. It’s probably doable with FxCop or StyleCop, but the simpler the better 😀
Thanks
Try resharper from jetbrains

..