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 |
Explain different types of cookies in .NET?
What is CCW (COM Callable Wrapper)
What is the difference between override and overload in a method?
What is namespaces in .net?
Tell us what is heap and what is stack?
What is common type system (cts)?
1.What is the major advantage of polymorphism? Please don't simply say binding. Specify any other reason.
Explain the Scope of public/private/friend/protected/protected friend.
What is managed code and managed data in .net?
How different are interface and abstract class in .Net?
Explain the difference between the while and for loop. Provide a .net syntax for both loops?
Define marshling?