Saturday, October 3, 2009

C# string literals

http://msdn.microsoft.com/en-us/library/aa691090(VS.71).aspx

I have a feeling that this paragraph is going to save my day in the future:
Since a hexadecimal escape sequence can have a variable number of hex digits, the string literal "\x123"contains a single character with hex value 123. To create a string containing the character with hex value 12 followed by the character 3, you could write "\x00123" or "\x12" + "3" instead.

1 comment: