Tsallaka zuwa abun ciki
Justice Tech School

Verbatim and Raw Strings

@"..." keeps backslashes and spans lines. Raw string literals use triple quotes.

Example
string path = @"C:\temp\file.txt";
string json = """
  { "name": "Ada" }
  """;
Console.WriteLine(path);
Console.WriteLine(json);

Exercise

Verbatim prefix.

"C:\temp"

Quiz Test

What does @ do before a string?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.