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 to retrieve property settings from xml .config file.
What is server side in asp.net?
What is the difference between page directive include and action tag include?
What is the maximum amount of memory any single process on windows can address?
What is the biggest disadvantage of “Other Return Types” in Web API?
Where can I get the details on migration of existing projects using various technologies to asp.net?
Explain what is an abstract class?
What is the purpose of url encoding?
What is a postback ispostback and autopostback in asp net?
How to implement role based security in asp.net mvc? : Asp.Net MVC
Define a static class?
What is the difference between table and query?
Will session work if cookies is disabled?
What are the new features implemented in ASP.NET?
What are validator? How do you disable them?