I\'ve written a program (in C#) that reads and manipulates MSIL programs that have been generated from C# programs. I had mistakenly assumed that the syntax rules for MSIL strin
Update
Based on experimentation using the C# compiler + ildasm.exe: perhaps the reason there is no list of escaped characters is because there are so few: precisely 6.
Going from the IL generated by ildasm, from C# programs compiled by Visual Studio 2010:
\t
: 0x09 : (tab)\n
: 0x0A : (newline)\r
: 0x0D : (carriage return)\"
: 0x22 : (double quote)\?
: 0x3F : (question mark)\\
: 0x5C : (backslash)Example 1: ASCII above 0x7E: A simple accented é (U+00E9)
C#: Either "é"
or "\u00E9"
becomes (E9
byte comes first)
ldstr bytearray (E9 00 )
Example 2: UTF-16: Summation symbol ∑ (U+2211)
C#: Either "∑"
or "\u2211"
becomes (11
byte comes first)
ldstr bytearray (11 22 )
Example 3: UTF-32: Double-struck mathematical