Question: what is difference between constant and readonly?
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.