C#_static readonly 和 const 区别

static 静态
readonly 只读 (可以在声明或构造函数中初始化)
const 只读(需在编译期也就是声明期初始化)

posted @ 2022-05-31 11:12  匿鱼  阅读(30)  评论(0)    收藏  举报