Mega Code Archive

 
Categories / C# Tutorial / Data Type
 

Integer Types

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