How it works

This diagnostic under the covers is a reimplementation of the core of String.Format, which allow parsing to continue even if the parser is in a fault state. This permits the parser to report additional issues with a single format string.

Why do this at all?

Simple some run-time exceptions are now compile-time exception.

What this enables is that it brings a subset of potential run-time exceptions into the realm of compile-time checks. It'll warn you before you compile the code!

Where this could lead?
It show the potential that an API set could also provide a set of code diagnostic as well to check for potential errors and issues at compile time.
Example
Future Possibilities

Last edited Dec 14, 2014 at 7:39 PM by AdamSpeight2008, version 4