Difference Between ReadOnly and Constant Variable in
compile time and Run Time.
Answer Posted / kamlesh sharma
readonly variables are can be initilized at compile time
but we can assign values to readonly varialble at once
through functions or constructors
but in case of constant variables once assign a value we
can't change value and must assign value to constant
variables at the time of declarition
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is ascx?
Can you explain the importance of finalize method in .net?
Explain about the .NET framework?
Explain the advantages of caching?
what is DLL Hell and how it is solved in .NET? please explain clearly??
What is a swagger in web api?
List the advantages and disadvantages of user control an custom control?
What are custom controls?
Explain what is event bubbling?
What are the main requirements for caching?
Fetch one page value to another page without using state-managment ?
What is form submit?
Differentiate strong typing and weak typing
Describe a bubbled event and how it is used ?
How you will manage the state of ASP.NET controls?