Code it ALL
C# Data Types - CodeGK
♦ C# Data Types

♣ C# Data Types

Data Types are fundamentally classified based on the amount of memory for each Data Type.
Each Data Type has the capability of holding a different type of entity.
Some common occurring Data Types are int, float, string.

♣ Data Types in C#

Below is a tabular explanation of Data Types in C#
Table Info
Data TypeSizeRange
int4 bytes-2,147,483,648 to 2,147,483,647
long8 bytes-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
float4 bytes6 to 7 decimal digits
double8 bytes15 decimal digits
char2 bytes255 characters
string2 bytes per character2,147,483,647 characters
bool1 bittrue or false
C# Data Types