title: C# - Adding to an existing (generated) constructor
body: <p>I have a constructor that is in generated code.  I don't want to change the generated code (cause it would get overwritten when I regenerate), but I need to add some functionality to the constructor.</p>
  
  <p>Here is some example code:</p>
  
  <pre><code>// Generated file
  public partial class MyGeneratedClass
  {
     public MyGeneratedClass() 
     {
        Does some generated stuff
     }
  }
  </code></pre>
  
  <p>The only solution I can come up with is this:</p>
  
  <pre><code>// My hand made file
  public partial class MyGeneratedClass
  {
     public MyGeneratedClass(bool useOtherConstructor):this()
     {
        do my added functinallity
     }
  }
  </code></pre>
  
  <p>I am fairly sure this will work, but I then have a lame unused param to my constructors and I have to go change them all.  Is there a better way?  If not that is fine, but I thought I would ask.</p>