Possible Duplicate:
What is the difference between const and readonly?
i have doubt in c# what is difference in constant and readonly explain with simple problem or any reference.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A
constis initialized at compile time, and cannot be changed.A
readonlyis initialized at runtime, but can be done only one time (in the constructor, or inline declaration).