Udostępnij za pośrednictwem


.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

See Also

Other Resources

Managed Types (C++/CLI)