title: C# "is" operator
body: <p>I've found such code in my project (T is some UI class):</p>
  <pre><code>if (current.GetType() == typeof(T) || current.GetType().GetTypeInfo().IsSubclassOf(typeof(T)))
  </code></pre>
  <p>I think it can be replaced with
  <code>current is T</code> or <code>typeof(T).IsAssignableFrom(typeof(current))</code>.</p>
  <p>Am I right?</p>