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 |
What are use of Cloud computing....?
What is il and c#?
Explain about .net?
What are pdbs?
why do you want to join deloitte, where do you exactly fit in.
What does mean by .net framework?
How many types of transactions are there in com + .net ?
What are the namespace available in .net?
Tell us what is a sealed class?
How can you automatically generate interface for the remotable object in .NET with Microsoft tools?
Please explain is the jit an interpreter?
What is STA in .NET?