title: How to check if a type is abstract in .NET Core?
body: <p>This code works fine in .NET (4.6 and prior)</p>
  
  <pre><code>var types = typeof(SomeType).GetTypeInfo().Assembly.GetTypes()
  from type in types
  where !type.IsAbstract
  </code></pre>
  
  <p>but in .NET Core (DNX Core 5.0) it is producing a compile error:</p>
  
  <blockquote>
    <p>Error CS1061  'Type' does not contain a definition for 'IsAbstract' and no extension method 'IsAbstract' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>So <strong>how can I check if a type is abstract in DNX Core 5.0</strong> the way I do it in .NET Framework 4.6?</p>
  
  <p><a href="https://i.stack.imgur.com/9ugjQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9ugjQ.png" alt="enter image description here"></a></p>