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 |
|
|
int8 |
sbyte |
|
|
uint8 |
byte |
|
|
int16 |
short |
|
|
uint16 |
ushort |
|
|
float32 |
float, single |
precision up to seven digits |
|
int32 |
int |
|
|
uint32 |
uint |
|
|
float64 |
double |
precision up to fifteen digits |
|
int64 |
long |
|
|
uint64 |
ulong |
|
|
string |
a sequence of zero or more Unicode characters |
|
For more information about any of these built-in types, it is recommended to view Microsoftโs โBuilt-in types (C# reference)โ documentation page.