Jean Carlos Jean Carlos - 3 months ago 27
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

Try calling GetTypeInfo() to get at this information.