mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-04-06 14:53:47 +00:00
Initial commit
This commit is contained in:
parent
36b9464af2
commit
4a4a0b8e20
4 changed files with 18 additions and 6 deletions
|
|
@ -14,7 +14,13 @@ else
|
|||
WriteLine($"This is not a valid age: {input}");
|
||||
}
|
||||
|
||||
string films = "\"Monsters, Inc.\",\"I, Tonya\",\"Lock, Stock and Two Smoking Barrels\"";
|
||||
// C# 1 to 10: Use escaped double-quote characters \"
|
||||
// string films = "\"Monsters, Inc.\",\"I, Tonya\",\"Lock, Stock and Two Smoking Barrels\"";
|
||||
|
||||
// C# 11 or later: Use """ to start and end a raw string literal
|
||||
string films = """
|
||||
"Monsters, Inc.","I, Tonya","Lock, Stock and Two Smoking Barrels"
|
||||
""";
|
||||
|
||||
WriteLine($"Films to split: {films}");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue