Why does C# have 'readonly' and 'const'?
This question already has an answer here:
Readonly: Can only be set in the constructor.
Const: Is a COMPILE TIME CONSTANT. Ie can not be determined at runtime.
链接地址: http://www.djcxy.com/p/21222.html下一篇: 为什么C#有'只读'和'常量'?