.Net Tips – using readonly vs const in C#
In C#, there are two ways for you to declare a constant variable, you can either declare the variable as readonly, or const: readonly A variable declared with the readonly modifier can only be assigned as part of the declaration or in the class’s constructor: const A variable declared with the const modifier must be …