1.

Difference Between Const, Readonly And Static Readonly In C# ?

Answer»
  • Constant variables are declared and initialized at compile time. The value can't be changed after words.
  • READONLY variables will be initialized only from the non-static CONSTRUCTOR of the same CLASS.
  • Static Readonly variables will be initialized only from the static constructor of the same class.



Discussion

No Comment Found