title: How does ReadOnlyCollection hide Add and Remove methods
body: <p><code>ReadOnlyCollection&lt;T&gt;</code> realises the <code>ICollection&lt;T&gt;</code> interface which has methods like Add and Remove. I know how to hide methods from Intellisense using attributes, but how is it possible to cause an actual compilation error if I try to use these methods?</p>
  
  <p>(Btw, I know it doesn't make sense to call Add and Remove on a ROC, it's a question on causing compilation error for inherited memebers, not on using the correct data structure).</p>