Concept
Data types directly supported by the compiler
"C # Primitive types and corresponding FCL types"
C # Primitive types |
FCL type |
Description |
SByte |
System.SByte |
Signed 8-bit value |
Byte |
System.Byte |
Unsigned 8th number bit value |
Short |
System.Int16 |
Signed 16-bit value |
UShort |
System.UInt16 |
Unsigned 16-bit value |
Int |
System.Int32 |
Signed 32-bit value |
UInt |
System.UInt32 |
Unsigned 32-bit value |
Long |
System.Int64 |
Signed 64-bit value |
ULong |
System.UInt64 |
Unsigned 64-bit value |
Char |
System.Char |
16-bit Unicode characters (representing 8-bit values in C + +) |
Float |
System.Single |
IEEE 32-bit floating-point value |
Double |
System.Double |
IEEE 64-bit floating-point value |
bool |
System.Boolean |
A Ture/false value |
Decimal |
System.Decimal |
A 128-bit high-precision floating-point value commonly used for financial calculations that do not tolerate rounding errors. |
String |
System.String |
A character array |
Object |
System.Object |
Base types for all types |
Dynamic |
System.Object |
Identical for Clr,dynamic and object. However, the C # compiler allows the use of a A simple syntax for dynamic variables to participate in scheduling. |
Read the Classics-"CLR via C #" (Jeffrey Richter) Notes _ primitive types