Question: what is the difference between const and readonly keywords in c#?
Answer: const variables can declared in methods ,while readonly fields cannot be declared in methods. const fields cannot be used with static modifier, while readonly fields can be used with static modifier. A const field is a compile-time constant, the readonly field can be used for run time constants.