摘要: 在C#中定义常量的方式有两种,一种叫做静态常量(Compile-time constant),另一种叫做动态常量(Runtime constant)。前者用“const”来定义,后者用“readonly”来定义。 对于静态常量(Compile-time constant),它的书写方式如下: pub 阅读全文
posted @ 2016-03-02 14:30 雨花梦 阅读(23509) 评论(0) 推荐(2)