title: How do you give a C# Auto-Property a default value When the Property is a Class
body: <p>there is a similar question <a href="https://stackoverflow.com/questions/40730/how-do-you-give-a-c-sharp-auto-property-a-default-value">here</a>. However my property is not an <code>int</code> or a <code>string</code> but a <code>class</code> itself with many properties of its own. So i want to set the default value to a property of a property.</p>
  
  <p>So here is my example:</p>
  
  <pre><code>public class Claim
  {
      public Person Member { get; set; }
      public Person Claimant { get; set; }
  }
  </code></pre>
  
  <p>As you can see my properties arent <code>int</code>'s or <code>string</code>'s put they are <code>Person</code>'s. Each person has many properties and I want to set the default value of one of them for each object.</p>
  
  <p>For example if I make a new person Like this:</p>
  
  <pre><code>Person Pete = new Person { PersonTypeID = 1 };
  </code></pre>
  
  <p>As you can see <code>Person</code> has a <code>PersonTypeID</code> property. Lets say I want to set that value as <code>1</code> for <code>Member</code> and <code>2</code> for <code>Claimant</code> as default values every time the <code>Claim</code> class in instantiated. How can I do this?</p>