Integer Types : Integer Family « Data Type « C# / CSharp Tutorial






Type          Size           Range (Inclusive)                                           BCL Name                 Signed
sbyte         8 bits         -128 to 127                                                 System.SByte             Yes
byte          8 bits         0 to 255                                                    System.Byte              No
short         16 bits        -32,768 to 32,767                                           System.Int16             Yes
ushort        16 bits        0 to 65,535                                                 System.UInt16            No
int           32 bits        -2,147,483,648 to 2,147,483,647                             System.Int32             Yes
uint          32 bits        0 to 4,294,967,295                                          System.UInt32            No
long          64 bits        -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807     System.Int64             Yes
ulong         64 bits        0 to 18,446,744,073,709,551,615                             System.UInt64            No








2.4.Integer Family
2.4.1.Family of Integers
2.4.2.Integer Types
2.4.3.Integer ranges
2.4.4.Use 'is' for int value type
2.4.5.A C# int is a shorthand for System.Int32, which inherits the following members from System.Object
2.4.6.Shifting an integer value