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
Explain diff between dataset and datareader?
What is viewstate? In which event of the page life cycle, is the viewstate available?
What are the main advantages of using asp.net?
What is masterpage?
What is the concept of view state in asp.net?
How would you turn off cookies on a page of a website?
How can we apply themes to an asp.net application?
Give an example of what might be best suited to place in the application_start and session_start subroutines?
What are tuples?
What is s2s tracking?
What is a web server? What are the load limits in it?
What is state management react?
What are the new features implemented in ASP.NET?
What is difference between web api and web services?
What is the use of ASP.NET routing?