Escape backslash in a string

By [)ia6l0 iii

Use the "@" character to escape backslashes in a string.

Prefix the string value with an ""@"" symbol, to escape the backslashes

e.g. string myValue = @""abc\xyz"";

Escape backslash in a string  (1609 Views)