云淡风清's blog

首页 新随笔 管理
2.4 预定义数据类型
2.4.3 预定义的值类型
1整型
    sbyte     System.SByte    8位有符号的整数
    short     System.Int16     16位有符号的整数
    int         Sytem.Int32       32位有符号的整数
    long      System.Int64      64位有符号的整数
    byte      System.Byte       8位无符号的整数
    ushort   System.Uint16   16位有符号的整数
    uint       System.Uint32    32位有符号的整数
    ulong    System.Uint64    64位有符号的整数

2浮点类型
    float    System.Single    32位单精度浮点数   7位
    double System.Double  64位双精度浮点数  15/16 位  

3decimal类型
    decimal    System.Decimal   128位高精度十进制数表示法   28位数

4bool类型
    bool      System.Boolean    true/false

5字符类型
    char System.Char 表示一个16位的(Unicode)字符

2.44 预定义的引用类型  (存储在堆上)
   object   System.Object    根类型,CTS中的其他类型都是从它派生而来的(包括值类型)
   string     System.String     Unicode字符串

posted on 2007-06-21 15:44  云淡风清(ydfqing)  阅读(168)  评论(0)    收藏  举报