What is the Difference between read only and constant
variables?
Answer Posted / zia khan
The difference between the readonly and const data members
is that const requires you to initialize with the
declaration, that is directly
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
What are the types of attributes in c#?
What is a deadlock lock?
What is object pool in .net?
Is array ienumerable c#?
Is a dll an assembly?
You are designing a user control. You created new property called backgroundimage which is of type image. You wanted to disable storing this property in the user’s form. How to achieve this?
Define satellite assembly in c#?
How many dimensions can an array have?
How to sign an assembly with strong name?
How many static constructors are allowed in a class?
Is datetime value type c#?
What is Covariance and contravariance in C#?
What is private variable?
What is the purpose of constructor in c#?
What is assembly manifest?