title: How to get properties of a class in WinRT
body: <p>I am writing a Windows 8 application in C# and XAML. I have a class with many properties of the same type that are set in the constructor the same way. Instead of writing and assignment for each of the properties by hand I want to get a list of all the properties of certain type on my class and set them all in a foreach. </p>
  
  <p>In "normal" .NET I would write this</p>
  
  <pre><code>var properties = this.GetType().GetProperties();
  foreach (var property in properties)
  {
      if (property.PropertyType == typeof(Tuple&lt;string,string&gt;))
      property.SetValue(this, j.GetTuple(property.Name));
  }
  </code></pre>
  
  <p>where <code>j</code> is a parameter of my constructor. In WinRT the <code>GetProperties()</code> does not exist. Intellisense for <code>this.GetType().</code> does not show anything useful I could use. </p>