title: Is there a wa to call a method immedietely after object instantiation?
body: <pre class="lang-cs prettyprint-override"><code>public class Foo
  {
      public Foo(){ }
  
      //One of many properties 
      //set up in the same way
      private String _name;
      public String Name 
      { 
          get { return _name; }
          set {
              _name = value;
              //code that is important to run
              //only after the objects initial creation   
          }
      }
  
      private int _id;
      public int ID 
      { 
          get { return _id; }
          set {
              _id = value;
              //code that is important to run
              //only after the objects initial creation   
          }
      }
  
      public void Win()
      {
          //clean up method that wouldn't be needed
          //if I used optional parameters because
          //i would be able to set _name (and all the
          //other private properties directly without
          //using the public Set
      }
  }
  </code></pre>
  
  <p>How do I call a method automatically after this kind of object creation in c#</p>
  
  <pre class="lang-cs prettyprint-override"><code>Foo ko = new Foo() {
      ID = 4,
      Name = "Chair"
  };
  ko.Win(); // &lt;-- Want this to be called automatically inside the class
  </code></pre>