mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
C#: Add some more UTF-8 encoded string examples.
This commit is contained in:
@@ -44,5 +44,16 @@ public class MyTestClass
|
||||
|
||||
// UTF-16 encoded.
|
||||
var y = "AUTH16: ";
|
||||
|
||||
// UTF-8 encoded vertabim.
|
||||
var z = @"AUTH8:
|
||||
<username> "u8;
|
||||
|
||||
// UTF-8 encoded raw literal.
|
||||
var w = """
|
||||
The nested message
|
||||
is UTF-8 encoded and
|
||||
spans multiple lines.
|
||||
"""u8;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user