C++ 类型转C#类型
Win32 Types CLR Type
char, INT8, SBYTE, CHAR System.SByte
short, short int, INT16, SHORT System.Int16
int, long, long int, INT32, LONG32, BOOL ,INT System.Int32
__int64, INT64, LONGLONG System.Int64
unsigned char, UINT8, UCHAR , BYTE System.Byte
unsigned short, UINT16, USHORT, WORD, ATOM,WCHAR , __wchar_t
System.UInt16
unsigned, unsigned int, UINT32, ULONG32,DWORD32, ULONG, DWORD, UINT
System.UInt32
unsigned __int64, UINT64, DWORDLONG,ULONGLONG
System.UInt64
float, FLOAT System.Single
double, long double,DOUBLE System.Double
本文详细列举了从C++的基本数据类型到C#对应类型的转换规则,包括整型、浮点型及布尔型等,为跨语言编程提供实用指南。
657

被折叠的 条评论
为什么被折叠?



