Skip to content

Commit 4c966f2

Browse files
committed
C#: Add some more UTF-8 encoded string examples.
1 parent 440fe80 commit 4c966f2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

csharp/ql/test/library-tests/csharp11/Strings.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,16 @@ public void M3()
4444

4545
// UTF-16 encoded.
4646
var y = "AUTH16: ";
47+
48+
// UTF-8 encoded vertabim.
49+
var z = @"AUTH8:
50+
<username> "u8;
51+
52+
// UTF-8 encoded raw literal.
53+
var w = """
54+
The nested message
55+
is UTF-8 encoded and
56+
spans multiple lines.
57+
"""u8;
4758
}
4859
}

0 commit comments

Comments
 (0)