Friday, 3 June 2016

How do you initiate a string without escaping each backslash?

You put an @ sign in front of the double-quoted string.
    String ex = @"This has a carriage return\r\n"

No comments:

Post a Comment