title: Using 'this' in base constructor?
body: <p>I'm working on a project that involves a lot of interfacing and inheritance, which are starting to get a little tricky, and now I've run into a problem.</p>
  
  <p>I have an abstract class State which takes in a Game object as a constructor argument. In my Game class's constructor, it takes in a State. The idea is that when inheriting from the abstract base Game class, when calling the base class's constructor, you give it an initial State object. However this State object takes in the same Game that you're creating it in. The code looks like this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public class PushGame : ManiaGame
  {
       public PushGame() :
            base(GamePlatform.Windows, new PlayState(this), 60)
       {
       }
  }
  </code></pre>
  
  <p>However this doesn't work. I can only assume because the 'this' keyword is not usable until after the constructor has begun to execute. Trying to use it in your base class's constructor doesn't work, apparently. So what would be my best workaround for this? My plan B is to just remove the State argument from the Game class's constructor and just set the state inside the constructor code afterwards.</p>
  
  <p>Is there an easier, less-intrusive way of doing this?</p>