C# Language Unrecognized escape sequences produce compile-time errors


Example

The following examples will not compile:

string s = "\c";
char c = '\c';

Instead, they will produce the error Unrecognized escape sequence at compile time.