Check if a type is a abstract class or interface or just a base class
I need a method that takes class name as a parameter and returns me if the type is an abstract class or interface or a base class or in generic the type of the data type that I pass as a parameter.