Verbatim String
noun
say it: “ver-BAY-tim string” /vərˈbeɪtɪm strɪŋ/
A C# string that starts with @, where backslashes are ordinary characters, handy for Windows paths.
What is Verbatim String in C#?
Verbatim String — A string beginning with @ where backslashes are treated as ordinary characters.
class FileLocation
{
string path = @"C:\orders\today.txt";
}
In a sentence
- “I wrote the folder path as a verbatim string, so I didn't have to double every backslash.”
Level: Apprentice · More C# terms at this level
Updated