title: Can I count properties before I create an object? In the constructor?
body: <p>can I count the amount of properties in a class before I create an object? Can I do it in the constructor?</p>
  
  <pre><code>class MyClass
  {  
      public string A { get; set; }
      public string B { get; set; }
      public string C { get; set; }
  
      public MyClass()
      {
          int count = //somehow count properties? =&gt; 3
      }
  }
  </code></pre>
  
  <p>Thank you</p>