Table 2-8. Character Fundamental Type
C++/CLI Alias Class Library Value
wchar_t System::Char A single 16-bit Unicode character
The .NET Framework class library System::Char is a 16-bit Unicode character, which has a
C++/CLI alias of __wchar_t (or wchar_t, if the Zc:wchar_t flag is set on the compiler).
Traditional C++ programmers must be wary of the C++/CLI alias char, as it is not the same as the
.NET Framework’s class library Char. A char is an 8-bit ASCII character, whereas a Char is a 16-bit Unicode
character.
浙公网安备 33010602011771号