Readonly vs. const?
Answers were Sorted based on User's Feedback
Answer / pavan
both of them does the same work these value cannot be
changed
but with a samll difference
using const we can assign a value before compile time
but using readonly we can assign value to the varible ones
in runtime
| Is This Answer Correct ? | 14 Yes | 0 No |
Answer / j_baghla
Both are used for constant values but in readonly variable
we can assign the value thru expression but we can't assign
value to constant variable thru expression.
| Is This Answer Correct ? | 5 Yes | 1 No |
Is the COM architecture same as .Net architecture? What is the difference between them (if at all there is)?
What do you mean by Driver Script?
What is the new three features of COM+ services, which are not there in COM (MTS)
Where does the gac exist ?
Is there any thread in our .net programs?
Explain .net framework overview?
What is use of ContextUtil class?
How is a property designated as read-only?
Please explain is the jit an interpreter?
Describe the compilation process for .net code?
What are asp.net authentication providers and iis security?
Do you know what is the difference between an abstract class and an interface?