const readonly 区别
摘要:
readonly与const的区别,要使用const的理由是效率高。(1)、const是编译常量,readonly是运行常量(2)、const是修饰基础类型,readonly没有限制public const int Cvalue = 100;public const static int Cvalu 阅读全文
![const readonly 区别](https://img2023.cnblogs.com/blog/624028/202308/624028-20230813121626443-1131311914.png)
posted @ 2023-08-13 12:17 panpeng666 阅读(25) 评论(0) 推荐(0) 编辑