.NET Framework Equivalents to C++ Native Types (C++/CLI)

 

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
boolSystem.Boolean
signed char (see /J for more information)System.SByte
unsigned charSystem.Byte
wchar_tSystem.Char
double and long doubleSystem.Double
floatSystem.Single
int, signed int, long, and signed longSystem.Int32
unsigned int and unsigned longSystem.UInt32
__int64 and signed __int64System.Int64
unsigned __int64System.UInt64
short and signed shortSystem.Int16
unsigned shortSystem.UInt16
voidSystem.Void

Managed Types (C++/CLI)

Show: