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 the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?
What is a delegate in .NET?
Write the .net syntax for 'for loop'?
can any one tel me the complete Testing Procedure of any one simple PROJECT i mean either web/windows based application?
What is msil, il?
What are asp.net authentication providers and iis security?
Is .net front end or backend?
Describe the start-up process for a Windows service.
What is assemblies in .net?
What is the use of ErrorProvider Control in .NET?
What are the Project related questions generaly asked in the interview. Mail to: ana_net1@yahoo.com
Example from .net. Integer & struct are value types or reference types in .net?