Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at .NET Framework Equivalents to C++ Native Types (C++/CLI).
The following table shows the keywords for built-in Visual C++ types, which are aliases of predefined types in the System namespace.
Visual C++ type | .NET Framework type |
---|---|
bool | System.Boolean |
signed char (see /J for more information) | System.SByte |
unsigned char | System.Byte |
wchar_t | System.Char |
double and long double | System.Double |
float | System.Single |
int, signed int, long, and signed long | System.Int32 |
unsigned int and unsigned long | System.UInt32 |
__int64 and signed __int64 | System.Int64 |
unsigned __int64 | System.UInt64 |
short and signed short | System.Int16 |
unsigned short | System.UInt16 |
void | System.Void |