title: How to prevent inheritance for some methods?
body: <p>How can I prevent inheritance of some methods or properties in derived classes?!  </p>
  
  <pre><code>
  public class BaseClass : Collection   
  {  
      //Some operations...  
      //Should not let derived classes inherit 'Add' method.  
  }
  
  public class DerivedClass : BaseClass      
  {        
      public void DoSomething(int Item)      
      {      
          this.Add(Item); // Error: No such method should exist...      
      }      
  }  
  </code></pre>