How do you initiate a string without escaping each backslash?
Loading
How do you initiate a string without escaping each backslash?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Brahma Prakash ShuklaPosted Nov 3, 2022, 11:03 AM
You put an @ sign in front of the double-quoted string.
String ex = @"This has a carriage return\r\n"