C# 数据类型
Type | ByteLenght | Min | Max | .NET Framework Type | default |
bool | 4 | FALSE | TRUE | System.Boolean | FALSE |
sbyte | 1 | -128 | 127 | System.SByte | 0 |
bytet | 2 | 0 | 255 | System.Byte | 0 |
short | 2 | -32768 | 32767 | System.Int16 | 0 |
ushort | 2 | 0 | 65535 | System.UInt16 | 0 |
int | 4 | -2147483648 | 2147483647 | System.Int32 | 0 |
uint | 4 | 0 | 4294967295 | System.UInt32 | 0 |
long | 8 | -9223372036854775808 | 9223372036854775807 | System.Int64 | 0L |
ulong | 8 | 0 | 18446744073709551615 | System.UInt64 | 0 |
float | 4 | ±1.5e−45 | ±3.4e38(精度7位) | System.Single | 0.0F |
double | 8 | ±5.0e−324 | ±1.7e308(精度15-16位) | System.Double | 0.0D |
char | U+0000 | U+ffff | System.Char | /0 | |
string | System.String | ||||
object | System.Object | NULL | |||
decimal | System.Decimal |
转载请注明出处。