Data Type in C# | Data type in .NET | Contains |
Byte | Byte | An integer from 0 to 255. |
Short | Int16 | An integer from –32,768 to 32,767. |
Int | Int32 | An integer from –2,147,483,648 to 2,147,483,647. |
Long | Int64 | An integer from about –9.2e18 to 9.2e18. |
Float | Single | A single-precision floating point number from approximately –3.4e38 to 3.4e38 (for big numbers) or –1.5e-45 to 1.5e-45 (for small fractional numbers). |
Double | Double | A double-precision floating point number from approximately –1.8e308 to 1.8e308 (for big numbers) or –5.0e-324 to 5.0e-324 (for small fractional numbers). |
Decimal | Decimal | A 128-bit fixed-point fractional number that supports up to 28 significant digits. |
Char | Char | A single 16-bit Unicode character. |
String | String | A variable-length series of Unicode characters. |
Bool | Boolean | A true or false value. |
Object | Object | The ultimate base class of all .NET types. Can contain any data type or object. |
Tags:
asp.net