C# Shorthand | System Type | Range | Meaning in life |
sbyte | System.Sbyte | -128 to 127 | Signed 8-bit number |
byte | System.byte | 0 to 255 | Unsigned 8-bit number |
short | System.Int16 | -32.768 to 32.767 | Signed 16-bit number |
ushort | System.UInt16 | 0 to 65.535 | Unsigned 16-bit number |
int | System.Int32 | -2.147.483.648 to 2.147.483.647 | Signed 32-bit number |
uint | System.UInt32 | 0 to 4,294,967,295 | Unsigned 32-bit number |
long | System.Int64 | –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 | Signed 64-bit number |
ulong | System.UInt64 | 0 to 18,446,744,073,709,551,615 | Unsigned 64-bit number |
char | System.Char | U0000 to Uffff | A single 16-bit Unicode character |
float | System.Single | 1.5x10-45 to 3.4x1038 | 32-bit floating point number |
double | System.Double | 5.0x10-324 to 1.7x10308 | 64-bit floating point number |
bool | System.Boolean | true or false | Represents truth or falsity |
decimal | System.Decimal | 100 to 1028 | A 96-bit signed number |
string | System.String | Limited by system memory | Represents a set of Unicode characters |
object | System.Object | Any type can be stored in an object variable | The base class of all types in the .NET universe |
Wednesday, 7 December 2011
C#: System data types
Labels:
C#
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment