Saturday, December 17, 2011

What is the difference between const and readonly in C#.NET?

The read only can be modified by the class it is contained in. However, the const cannot be modified. It needs to be instantiated only at the compile time.

List of Asked Interview Questions: C# .NET SQL MVC WCF Questions