|
|
Constant and readonly variables | C# supports constants - marked with const - which are computed and bound at compile
time, before the program starts its execution. C# also supports variables - marked
with readonly - which can only be assigned when the surrounding object is created.
Once the object has been created, these variables are constant (read only) as well. |
Constants and readonly variables cannot be changed during program execution |
|
|
Read more about constants in the text book version of this material. |