Difference Between ReadOnly and Constant Variable in
compile time and Run Time.
Answer Posted / saiish bhat
readonly is compile time constant.
constant is runtime constant.
constatnt field is used to initialize at the declaration of
the field.
readonly field is used at the declaration or constructor of
the field.
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
How can we identify that the page is post back in asp net?
Where the viewstate is stored after the page postback?
What is the difference between session and viewstate?
What are all the various Estimation Techniques available ?
Is LINQ performance wise better or using sqlcommand?
What are the different types of sessions in asp.net?
Explain the steps needed to be performed in order to create an animation in xaml?
How can we inherit a static variable?
What is an asp.net web form?
What are the advantages of asp.net mvc framework? : asp.net mvc
What are the HTML server controls in ASP.NET?
How to implement form based authentication in asp.net application?
What do you mean by authentication?
Name some asp objects?
What is query string with example?