title: How to get static properties from base type via reflection
body: <p>I try to get static properties from a base type via reflection. There are many questions regarding this topic on this side, but they all focus on getting non static properties of a base type or static properties from the target type.</p>
  <pre><code>public class A
  {
      public static string STATIC_BaseProp =&gt; &quot;STATIC_BaseProp&quot;; //&lt;-- I want this
      public string BaseProp =&gt; &quot;BaseProp&quot;;
  }
  
  public class B : A
  {
      public static string STATIC_Prop =&gt; &quot;STATIC_Prop&quot;;
      public string Prop =&gt; &quot;PROP&quot;;
  }
  
  static void Main(string[] args)
  {
      var type = typeof(B);
      foreach (var propertyInfo in type.GetProperties())
      {
          Console.log(propertyInfo);
      }
  }
  </code></pre>
  <p>Output:</p>
  <pre><code>System.String STATIC_Prop
  System.String Prop
  System.String BaseProp
  </code></pre>
  <p>This seems to only adress the static properties of the target type and the non static properties of the target type and the base type. But I want only the static property of the base type (<code>STATIC_BaseProp</code>)</p>
  <p>Does anyone know how to do this?</p>