title: C# Reflection code not working;
body: <p>I have this very simple test because the full version doesn't work either;</p>
  
  <pre><code>public class dfd
  {
      public string g { get; set; }
  }
  </code></pre>
  
  <p>and then;</p>
  
  <pre><code>        Type myType = typeof(dfd);
          FieldInfo[] b = myType.GetFields(BindingFlags.Public);
  </code></pre>
  
  <p>When I look at b there is no field info.</p>
  
  <pre><code>{System.Reflection.FieldInfo[0]}
  </code></pre>
  
  <p>Any ideas?</p>