2016年1月17日

readonly与const

摘要: readonly与const在C#中,readonly 与 const 都是定义常量,但不同之处在于:readonly 是运行时常量,而 const 是编译时常量。public const int intValue = 100;public void Test(){ Console.Write... 阅读全文

posted @ 2016-01-17 13:23 (牛_牛).NET 阅读(348) 评论(0) 推荐(0) 编辑

导航