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 it possible implement webservices without SOAP?
What is meant by globalization and localization?
what all type of application can u make with visual studio?
Explain Creational design pattern in .NET?
Which dll is required to translate xml to sql in internet information server (iis)?
How many design patterns can be created in .net?
What are object pooling and connection pooling and difference?
How do you pass value of a text box from page1.aspx to page2.aspx without storing it as a session value?
Define satelite assembly?
What is the difference between override and overload in a method?
Explain about Behavioral design pattern?
What are .net functions?