C# Language Unrecognized escape sequences produce compile-time errors

Download C# Language for free

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.

Using escape sequences in identifiers