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
What is the difference between stored procedure vs function?
What is ispostback method in asp.net?
while developing webservices if i want some users to use my webservice only how can i give security to my webservice?
What does the hotspot class in .net do?
What is difference between abstract class and an interface?
What is advantage of code behind coding in ASP.NET?
Which .NET framework supports Web API?
Is it possible to change the index of primary key on table?
What is the difference between CLICK and MOUSE DOWN Event ?
What is web configuration file and how to use in web application
What is the life cycle of an asp.net page?
Explain why it is useful to use mvc instead of webforms? : asp.net mvc
What is the base class from which web forms are inherited?
What can we do with asp.net?
When we use cookie less session? Explain its working?