title: How to use Reflection to read Static Properties from a Nested Class?
body: <p>I have some configuration stored in the following data structure which uses nested classes for Organization.</p>
  
  <pre><code>public abstract class LogoSpec
  {
      public abstract byte[] Logo { get; set; }
  
      public class Web
      {
          public static float Height { get; set; }
  
          public class A4 : Web
          {
              public static float Left { get; set; }
          }
      }
  }
  
  public class SampleLogo : LogoSpec
  {
      public override byte[] Logo { get; set; }
  }
  </code></pre>
  
  <p>I can easily use it when I exactly know what value to use at design time</p>
  
  <pre><code>// Setting values
  SampleLogo.Web.A4.Height = 10.25f;
  </code></pre>
  
  <p>How can I write a function that retrieves this value at runtime? </p>
  
  <pre><code>float GetValue(string logoName = "SampleLogo", string layout = "Web", string paperSize = "A4", string property = "Height");
  </code></pre>