Question: what is difference between readonly and constant in c#?
Answer: Difference between const and readonly const fields has to be initialized while declaration only, while readonly fields can be initialized at declaration or in the constructor. const variables can declared in methods ,while readonly fields cannot be declared in methods.