What is the Difference between read only and constant
variables?
Answer Posted / raju
1.We can assign value to readonly field, only in
constructor or while declare the variable.But in case of
const we should assign a value while declare.
2.const=static readonly
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Why extension method is static?
What is console programming language?
Explain About Postback
What is the advantage of dependency injection?
What is difference between singleordefault and firstordefault?
How we convert private assembly into public assembly?
Is c sharp open source?
Why constructor is used in c#?
What is code verification?
What are delegates?
Difference between debug.write and trace.write?
Is xml tags are case sensitive?
What is generic delegate in c#?
What is Event - Delegate?
How to override a function in c#?