Skip to content

Latest commit

 

History

History
65 lines (60 loc) · 1.43 KB

built-in-types.rst

File metadata and controls

65 lines (60 loc) · 1.43 KB

C# Built-in Types

The following table lists the C# built-in types, along with common aliases and default values:

C# type Alias(es) Range Default Value
bool Boolean true or false false
int8 sbyte -128 to 127 0
uint8 byte 0 to 255 0
int16 short -32768 to 32767 0
uint16 ushort 0 to 65535 0
float32 float, single precision up to seven digits 0
int32 int -2147483648 to 2147483647 0
uint32 uint 0 to 4294967295 0
float64 double precision up to fifteen digits 0
int64 long -9223372036854775808 to 9223372036854775807 0
uint64 ulong 0 to 18446744073709551615 0
string a sequence of zero or more Unicode characters null

For more information about any of these built-in types, it is recommended to view Microsoft's "Built-in types (C# reference)" documentation page.