title: Generating empty objects - empty class with empty properties/subclasses C#
body: <p>I have two classes:</p>
  
  <pre><code>public class HumanProperties { int prop1; int prop2; string name;}
  
  public class Human{int age; HumanProperties properties;}
  </code></pre>
  
  <p>Now if i want to create new instance of Human, i have to do <code>Human person = new Human();</code>
  But when i try to access like <code>person.properties.prop1=1;</code> then i have nullRefrence at properties, beacuse i have to make new properties too.
  I have to make like that: </p>
  
  <pre><code>Human person = new Human();
  person.properties = new HumanProperties();
  </code></pre>
  
  <p>and now i can access this <code>person.properties.prop1=1;</code></p>
  
  <p>This was small example, but i have huge class generated from xsd and i dont have so much time for generating manually this "person" class with all its subclasses. 
  Is there some way how to do it programmatically or is there some generator for that?</p>
  
  <p>Or can i loop through class and make for every property new class typeof property and join it to parent class?</p>
  
  <p>Thanks!</p>