Notes: C# Data Types

 

Type Size in bits Values
bool 8 true or false
char 16 '\u0000' to '\uFFFF'
byte 8 0 to 255
sbyte 8 -128 to +127
short 16 -32768 to +32767
ushort 16 0 to 65,535
int 32 -2,147,483,648 to 2,147,483,647
uint 32 0 to 4,294,967,295
long 64 -9,223,372,036,854,755,808 to 9,223,372,036,854,755,807
ulong 64 0 to 18,446,744,073,709,551,615
decimal 128 1.0 x 10-28 to 7.9 x 1028
float 32 ±1.5∞10-45 to ±3.4∞1038
double 64 ±5∞10-324 to ±1.7∞10308
object    
string