现在的位置: 首页 > 综合 > 正文

C#简单数据类型

2011年05月26日 ⁄ 综合 ⁄ 共 489字 ⁄ 字号 评论关闭

   

类型

别名

允许的值

sbyte

Syetem.Sbyte

-128~127之间的整数

byte

Syetem.Byte

0~225之间的整数

short

Syetem.Int16

-32768~32767之间的整数

ushort

Syetem.Uint16

0~65535之间的整数

int

Syetem.Int32

-2147483648~2147483647之间的整数

uint

Syetem.Uint32

0~4294967295之间的整数

long

Syetem.Int64

-9223372036854775808~9223372036854775807之间的整数

ulong

Syetem.Uint64

0~18446744073709551615之间的整数

浮点数类型

float

Syetem.Single

 

double

Syetem.Double

 

decimal

Syetem.Decimal

 

 

char

Syetem.Char

一个Unicode字符,存储0~65535之间的整数

 

bool

Syetem.Boolean

布尔值:truefalse

 

string

Syetem.String

字符串

抱歉!评论已关闭.