Thursday, 7 July 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"

1 comment:

  1. How do you initiate a string without escaping each backslash?

    ReplyDelete