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 is Ajax? How it is related to your project?
Do you know what's the difference between .net and laravel?
What is garbage collection? Explain the difference between garbage collections in .net 4.0 and earlier versions?
. How .NET can support multiple languages?
How do I use the thread pool?
Difference between user groups and code groups
What is misl?
How com+ related to the dna architecture?
Explain what is an application domain?
What is garbage collection and how it works. Provide a code example of how you can enforce garbage collection in .net?
Explain the different parts of an assembly?
What is the use of edititem template ingridview?
1 Answers C Squared Systems, Microsoft,