title: Get value of field by string
body: <p>I want to get the value of a field of an object by using a string as variable name.
  I tried to do this with reflection:</p>
  
  <pre><code>myobject.GetType().GetProperty("Propertyname").GetValue(myobject, null);
  </code></pre>
  
  <p>This works perfectly but now I want to get the value of "sub-properties":</p>
  
  <pre><code>public class TestClass1
  {
      public string Name { get; set; }
      public TestClass2 SubProperty = new TestClass2();
  }
  
  public class TestClass2
  {
      public string Address { get; set; }
  }
  </code></pre>
  
  <p>Here I want to get the value <code>Address</code> from a object of <code>TestClass1</code>.</p>