title: Any alternative for IsSubclassOf or IsAssignableFrom in C# Metro-style
body: <p>Is there any alternative for <code>IsSubclassOf</code> or <code>IsAssignableFrom</code> in C# Metro-style?</p>
  
  <p>I'm trying to make this code run on Metro but can't find alternative. </p>
  
  <pre><code>if ((ui.GetType() == type) || (ui.GetType().IsSubclassOf(type)))
  {
      return true;
  }
  </code></pre>