Article ID: 814824 - Last Review: November 14, 2007 - Revision: 1.10 BUG: You receive a "CS1519" compiler error code when you use surrogate characters as a token in Visual C# .NETOn This PageSYMPTOMSWhen you compile Visual C# .NET or Visual C# 2005 code with surrogate Unicode
characters as a token name, you may receive the following CS1519 compiler error
message: Error Invalid token 'token' in class, struct, or interface member
declaration CAUSEVisual C# .NET or Visual C# 2005 only accepts alphabetical and numeric
characters in a token name. STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
MORE INFORMATIONA surrogate pair is a coded character representation for a
single abstract character is made up of a sequence of two code units. The first
unit of the pair is a high-surrogate (U+D800 through U+DBFF) and the second is
a low-surrogate (U+DC00 through U+DFFF). The Visual C# .NET or Visual C# 2005 compiler does not support surrogate Unicode characters as a token name. Steps to Reproduce the Behavior
REFERENCESFor additional information, visit the following Microsoft
Developer Network (MSDN) Web site: Unicode
Support for Surrogate Pairs and Combining Character
Sequences | Article Translations
|
Back to the top
