Standard C# Typed

The data types discussed have been standard c# types. There are a number of standard C# types you can use that will hold various types of data. Following is a list of some of the more commonly used C# types with the equivalent .NET type.

Type .NET Data Type Description
bool  System.Boolean  True/false values
byte System.Byte  1 or 0 values
char System.Char

 Single characters

decimal System.Decimal  Decimal values
double System.Double Large floating-point number
 float System.Single Small floating-point number
int System.Int32  Integer value
long System.Int64 Large integer value
object System.Object Generic object that can hold other types
short System.Int16  Short integer value
short System.Int16 Short integer value
string System.String  Array of characters

 

Leave a Reply