日期:2014-05-17  浏览次数:20806 次

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