Jean Carlos Jean Carlos - 1 year ago 91
C# Question

How check if type is class?

In .Net we have

Type.IsClass
to check if a type is a class using
System.Reflection
.

But in .Net Core no. So, how can I check?

Answer Source

Try calling GetTypeInfo() to get at this information.