title: visual studio warning if base method is not called
body: <p>I am researching a way to make Visual Studio fire a warning if I override a specific method in a base class but forget to call the base method in the overridden one. E.g:</p>
  
  <pre><code>class Foo
  {
     [SomeAttributeToMarkTheMethodToFireTheWarning]
     public virtual void A() { ... }
  }
  
  class Bar : Foo
  {
     public override void A()
     {
        // base.A(); // warning if base.A() is not called
        // ...
     }
  }
  </code></pre>
  
  <p>So far I couldn't find a way and probably it is not possible to make the compiler fire such a warning directly. Any ideas for a way to do it, even if it's a 3rd-party tool or using some API from the new Roslyn .NET compiler platform?</p>
  
  <p>UPDATE:
  For example, in AndroidStudio (IntelliJ) if you override <code>onCreate()</code> in any activity but forget to call the base method <code>super.onCreate()</code>, you get a warning. That's the behavior I need in VS.</p>