what is difference between const, static and readonly?
Answer Posted / amit manekar
The difference is that static read-only can be modified by
the containing class, but const can never be modified and
must be initialized to a compile time constant. To expand on
the static read-only case a bit, the containing class can
only modify it:
in the variable declaration (through a variable initializer).
in the static constructor (instance constructors if it's not
static).
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is http post and http get?
What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
Explain how is the asp.net mvc architecture different from others? : asp.net mvc
Where is the view state data stored?
How is mvc different from asp.net? : Asp.Net MVC
What is Bundling and Minification in MVC?
Do you know about caching with the datasource controls?
Why we use asp.net for website development?
What does asp.net stand for?
Differentiate between authentication and authorization.
What is microsoft windows sharepoint services?
Explain one critical mapping?
What are the page life cycle events?
What is masterpage?
Explain different types of validators in asp.net?