title: Using reflection to set a property of a property of an object
body: <p>I've got two classes.</p>
  
  <pre><code>public class Class1 {
     public string value {get;set;}
  }
  
  public class Class2 {
     public Class1 myClass1Object {get;set;}
  }
  </code></pre>
  
  <p>I've got an object of type Class2. I need to use reflection on Class2 to set the value property... i.e, if I were doing it without reflection, this is how I would go about it:</p>
  
  <pre><code>Class2 myObject = new Class2();
  myObject.myClass1Object.value = "some value";
  </code></pre>
  
  <p>Is there a way to do the above, while using reflection to access the property "myClass1Object.value" ?</p>
  
  <p>Thanks in advance.</p>