Wednesday, January 14, 2015

Readonly vs const in C#

A const field can only be initialized at the declaration of the field.
A readonly field can be initialized either at the declaration or in a constructor

http://msdn.microsoft.com/en-us/library/vstudio/acdd6hb7(v=vs.100).aspx