Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • System Data Types and Corresponding C# Keywords

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 84
    Comment on it

    To hold the data of different kinds like string, number, bool, decimal in memory, c# uses flowing data types to achieve this.

    In this tutorial, I am providing you the list of system data types and their range in c#:

     

    C# Shorthand CLS Compliant? System Type Range Meaning in Life
    bool yes System.Boolean true or false Represents truth or
    falsity
    sbyte No System.SByte –128 to 127 Signed 8-bit number
    byte Yes System.Byte 0 to 255 Unsigned 8-bit number
    short Yes System.Int16 –32,768 to 32,767 Signed 16-bit number
    ushort No System.UInt16 0 to 65,535 Unsigned 16-bit number
    int Yes System. System.Int32 –2,147,483,648 to
    2,147,483,647
    Signed 32-bit number
    uint No System.UInt32 0 to 4,294,967,295 Unsigned 32-bit number
    long Yes ystem.Int64 –9,223,372,036,854,775,
    808 to 9,223,372,036,854,
    775,807
    Signed 64-bit to number
    ulong No System.UInt64 0 to 18,446,744,073,709,
    551,615
    Unsigned 64-bit number
    char Yes System.Char U+0000 to U+ffff Single 16-bit Unicode
    character
    float Yes System.Single -3.4 10 to the power 38 to +3.4 10 to the power 38 32-bit floating-point
    number
    double Yes System.Double ±5.0 10 to power –324 to ±1.7 10 to the power 308 64-bit floating-point
    number
    decimal Yes System.Decimal (-7.9 x 10 to power 28 to 7.9 x 10 to power 28)/
    (10 to power 0 to 28)
    128-bit signed number
    string Yes System.String Limited by system
    memory
    Represents a set of
    Unicode characters
    Object Yes System.Object Can store any data type
    in an object variable
    The base class of all
    types in the .NET
    universe

     

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: