C# – Datentypen

Datentyp Wertebereich Bit Laufzeittyp
bool true oder false 1 Boolescher Wert
byte 0 … 255 8 Byte
sbyte -128 … 127 8 SByte
char 0 … 65535 16 Unicode Zeichen
short -215 -215 -1 16 Int16
ushort 0 … 65535 16 UInt16
int -231 – 231 -1 32 Int32
uint   32 UInt32
float 1,4 x 10- 45 … 3,4 x 1038 32 Single
ulong 0 … 264 -1 64 UInt64
long -263 – 263 -1 64 Int64
double 5,0 x 10- 324 … 1,7 x 10308 64 Double
decimal ±1,0 x 10-28 … ±7,9 x 1028 128 Decimal



Tags: , , , , , , , , , , , , ,