【C#笔记】数据类型一览表

整数型

类型 别名 允许的值
sbyte System.SByte -128~127
byte System.Byte 0~255
short System.Int16 -32,768~32,767
ushort System.UInt16 0~65,535
int  System.Int32 -2,147,483,648~2,147,483,647
uint System.UInt32 0~4,294,967,295
long System.Int64 -9,223,372,036,854,775,808~9,223,372,036,854,775,807
ulong Systen.UInt64 0~18,446,744,073,709,551,615

   

注:一些变量名前面的“U”是unsigend的缩写。表示不能在这些类型中储存负数

原文地址:https://www.cnblogs.com/laoshuboke/p/4487801.html