当前位置:首页 > 开发 > C# > 正文内容

C# 数据类型

C#4年前 (2021-12-18)
Type ByteLenghtMinMax.NET Framework Typedefault
bool4FALSETRUESystem.BooleanFALSE
sbyte1-128127System.SByte0
bytet20255System.Byte0
short2-3276832767System.Int160
ushort2065535System.UInt160
int4-21474836482147483647System.Int320
uint404294967295System.UInt320
long8-92233720368547758089223372036854775807System.Int640L
ulong8018446744073709551615System.UInt640
float4±1.5e−45±3.4e38(精度7位)System.Single0.0F
double8±5.0e−324±1.7e308(精度15-16位)System.Double0.0D
char
U+0000U+ffffSystem.Char/0
string


System.String
object


System.ObjectNULL
decimal


System.Decimal


转载请注明出处。

本文链接:http://pythonopen.com/?id=171

相关文章

C# double转为string并保留两位小数

在 C# 中,可以使用多种方式将 double 类型的数据转换为 string 类型并保留两位小数,...

C# BackgroundWorker,在DoWork里更新控件内容

一般情况下不可以直接在BackgroundWorker的DoWork事件中更新 UI 控件在Back...

C# Byte[]转为Bitmap

在 C# 中,可以使用System.Drawing命名空间下的相关类将byte[]类型的数据转换为B...

C# i++和++i的区别

核心区别操作顺序            ...

C# 比较两个Image对象是否相同

方法思路基础检查:先检查空引用和图像尺寸像素格式验证:确保两个图像的像素格式相同内存锁定:使用Loc...