Answer Posted / vathsala
A quick synopsis on the differences between 'const'
and 'readonly' in C#:
'const':
1.Can't be static.
2.Value is evaluated at compile time.
3.Initiailized at declaration only.
'readonly':
1.Can be either instance-level or static.
2.Value is evaluated at run time.
3.Can be initialized in declaration or by code in the
constructor.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How to use nullable types in .net?
What does int parse do in c#?
What is the use of ienumerable?
What is the difference between writeline and write in c#?
What is session management in c#?
Is constructor a static method?
explain the three services model commonly know as a three-tier application.
What is out int in c#?
Assembly Code. in Rejester AL. How do Contast Replece( or Change): Bit D3 With Bit D4 and Bit D2 With Bit D5 and Bit D1 With Bit D6 and Bit D0 With Bit D7 I am Not Know Very Well Write English.
How do you create dlls in .NET
What is the concept of strong names?
Is c# scripting language?
how to insert the data from the grid view to database table though button click.pls send the answer to mail id suri1319@gmail.com
How many types of polymorphism are there?
What is the use of base keyword? Tell me a practical example for base keyword’s usage?