On MSDN I can read that \'
is escape sequence for '
char. However I am able to use it in string without escape sequence like this:
Console.WriteLine("Press 'X' ");
How it is possible?
But how would you write it as a char
?
char c = '\'';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With