mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
missed out the @ symbol
This commit is contained in:
parent
b01b53a46d
commit
3e072363d9
@ -135,7 +135,7 @@ namespace Learning.CSharp
|
||||
// Verbatim String
|
||||
// You can use the @ symbol before a string literal to escape all characters in the string
|
||||
string path = "C:\\Users\\User\\Desktop";
|
||||
string verbatimPath = "C:\Users\User\Desktop";
|
||||
string verbatimPath = @"C:\Users\User\Desktop";
|
||||
Console.WriteLine(path == verbatimPath); // => true
|
||||
|
||||
// You can split a string over two lines with the @ symbol. To escape " use ""
|
||||
|
Loading…
Reference in New Issue
Block a user