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 |
I was working for software company frm 2005 to 2009. I left job due to recession.I was jobless till dec 09 then i got job in bpo and i am not knowing what to do as my professional experience is with software.give me any suggestion.
What method do you use to explicitly kill a users session? How?
Explain me what is a design pattern and what is it for?
Difference between assembly manifest & metadata assembly manifest
what is event inheritance and event delegation?
Resource Files: How to use the resource files, how to know which language to use?
What is the difference between custom control and web control?
Please explain the difference between constants and read-only variables?
How do you turn off cookies for one page in your site? Give an example.
Can you configure a .NET Remoting object via XML file?
What base class do all Web Forms inherit from?
What does jit do?