2023年8月13日

const readonly 区别

摘要: const readonly 区别 readonly与const的区别,要使用const的理由是效率高。(1)、const是编译常量,readonly是运行常量(2)、const是修饰基础类型,readonly没有限制public const int Cvalue = 100;public const static int Cvalu 阅读全文

posted @ 2023-08-13 12:17 panpeng666 阅读(25) 评论(0) 推荐(0) 编辑

导航