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 the Goals of the UIP Application Block?
What's wrong with a line like this? Datetime.parse(mystring);
What are the challenging issues you have faced in implementation project/Maintainance project in .net Functionality? How you have overcome that issue?
Which property is used in the email to send the content as HTML
Differences between namespace, class, assembly?
Explain what is the difference between encrypting a password and applying a hashing?
What is the raise event used for?
How to Exchange data between Webservices
Explain how does assembly versioning work?
What's the problem with .net generics?
Using com component in .net?
What are the important components of .net?