Question: what is the difference between const and readonly in c#?
Answer: const fields has to be initialized while declaration only, while readonly fields can be initialized at declaration or in the constructor. ... A const field is a compile-time constant, the readonly field can be used for run time constants.