TypeExtensions
Various extension methods for type reflection.
Casts an object to the class, value type or interface.
Returns method that overrides the specified method.
public static IEnumerable<Type> GetBaseTypes(this Type type, bool includeTopLevel = false, bool includeInterfaces = false)
Returns read-only collection of base types and, optionally, all implemented interfaces.
Gets default value for the specified type.
Returns actual generic arguments passed into generic type definition implemented by the input type.
Indicates that object of one type can be implicitly converted into another without boxing.
Determines whether the type is an instance of the specified generic type.
Determines whether the type is read-only (immutable) value type.
Determines whether the type is unmanaged value type.