C#的基本类型及大小类型
而常用的类型有 int、Float、double、bool、string、Object这五种类型
?
下面是C#里面的基本类型
数据类型
说明
范围
系统类型
int
有符号的32位整数
-2147483648~2147483647
System.Int32
uint
无符号的32位整数
0~4294967295
System.Uint32
long
有符号的64位整数
-9223372036854775808~
9223372036854775807
System.Int64
Ulong
无符号的64位整数
0~18446744073709551615
System.Uint64
Char
16位Unicode字符
U0000~UFFFF
System.Char
Float
32位浮点数
1.5 * 10-45~3.4 * 1038
System.Single
double
64位浮点数
5.0 * 10-324~1.7* 10308
System.Double
decimal
96位带符号数
100~1028
System.Decimal
bool
表示真或假
True 或 False
System.Boolean
String
表示char类型的集合
与系统内存地址空间有关
System.String
object
所有类型的基类
有所类型
System.Object???