zoukankan      html  css  js  c++  java
  • C#的数据类型


                                           

    1、整数类型

    sbyte        System.SByte       8位有符号整数 

    short         System.Int16       16位有符号整数

    int              System.Int32      32位有符号整数

    long            System.Int64     64位有符号整数

    byte           System.Byte       8位无符号整数 

    ushort         System.Int16       16位有符号整数

    uint             System.Int32      32位无符号整数

    ulong           System.Int64     64位无符号整数

    2、浮点数

    Float          System.Single     32位单精度浮点数    7位有效数字

    Double       System.Double     64位单精度浮点数   15-16位有效数字


    3、decimal类型

    decimal      System.Decimal    128位高精度十进制数表示法     28位有效数字

    4、boolean类型

    boolean      System.Boolean   值为true 或 false

    5、Character字符类型

         Char      System.Char   表示一个16位(Unicode)字符

    6、引用类型

    object       System.Object

    string        System.String

    所有的.net类。

  • 相关阅读:
    设计模式-观察者模式
    idea 生成 protobuf
    springboot @Autowride 注入空 调用时报Null空指针
    Netty 服务端创建过程
    git failed to push some refs to
    SPI simp
    Controller之statefulset
    Service
    Controller之deployment
    rabbitmq“ Login was refused using authentication mechanism PLAIN”
  • 原文地址:https://www.cnblogs.com/zkxp/p/337039.html
Copyright © 2011-2022 走看看