title: How can I force the base constructor to be called in C#?
body: <p>I have a BasePage class which all other pages derive from:</p>
  
  <pre><code>public class BasePage
  </code></pre>
  
  <p>This BasePage has a constructor which contains code which must always run:</p>
  
  <pre><code>public BasePage()
  {
      // Important code here
  }
  </code></pre>
  
  <p>I want to force derived classes to call the base constructor, like so:</p>
  
  <pre><code>public MyPage
      : base()
  {
      // Page specific code here
  }
  </code></pre>
  
  <p><strong>How can I enforce this (preferably at compile time)?</strong></p>