What is the difference between readonly and const

Answer Posted / vishnu

a read only
field can be initialized either in initialization or in
constructor

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of using assemble language programming?

748


Can we maintain state in webservice?

778


Can a string be null c#?

698


Is datetime value type c#?

667


What is the difference between first and firstordefault?

702


Explain how do I get deterministic finalization in c#?

716


Explain circular reference in c#?

768


What are Regex / regular expressions ?

839


What is meant by desktop application?

709


Difference between call by value and call by reference in C#?

788


What will be the output of the following code?

732


What is readline library?

754


What is the diff between System.String and System.Text.StringBuilder classes?

790


What is the usage of OLE?

813


How you will create satellite assemblies?

723