136.
Which of these string definitions will prevent escaping on backslashes in C#?
View Description
@-quoted string literals start with @ and are also enclosed in double quotation marks. For example:
Copy Code
@"good morning" // a string literal
The advantage of @-quoting is that escape sequences are not processed, which makes it easy to write, for example, a fully qualified file name:
Copy Code
@"c:\Docs\Source\a.txt" // rather than "c:\\Docs\\Source\\a.txt"
To include a double quotation mark in an @-quoted string, double it:
Copy Code
@"""Ahoy!"" cried the captain." // "Ahoy!" cried the captain.