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 ASP and ASP.NET page works? Explain about asp.net page life cycle?
What is ASLM?
What is preprocessor in .net?
Why we use asp.net for website development?
How to improve performance of web application asp.net mvc? : Asp.Net MVC
What is strong-typing versus weak-typing?
Why select Web API?
How can you register a custom server control to a web page?
What is work flow gen? how can it will work with .Net?
What is the difference between trace and debug in asp.net?
Describe how to implement globalization and localization in the use interface in .net.
How do session tokens work?
How do you do client-side validation in .net? How to disable validator control by client side javascript?
What is redirectpermanent in asp.net?
What threading model used in asp and asp.net?