Why does C# have 'readonly' and 'const'? : <p>I come from a C++ background and am trying to become proficient in C#. It seems like C# always has 2 types of modifiers wherever C++ had one. For example, in C++ there is <code>&amp;</code> for references and then in C# there is <code>ref</code> and <code>out</code> and I have to learn the subtle differences between them. Same with <code>readonly</code> and <code>const</code>, which are the topic of this thread. Can someone explain to me what the subtle differences are between the 2? Maybe show me a situation where I accidentally use the wrong one and my code breaks. </p>
