Extension methods allowing portable and non portable libraries to call a single set of reflection based Type methods.
public static class TypeUtility
| name | description |
|---|---|
| static GetAssembly(…) | Gets the System.Reflection.Assembly in which the specified type is declared. For generic types, gets the System.Reflection.Assembly in which the generic type is defined. |
| static GetBaseType(…) | Gets the type from which the specified Type directly inherits. |
| static GetConstructor(…) | Gets the constructor with the specified parameter types, or null if there isn’t one. |
| static GetCustomAttributes(…) | Gets the custom attributes. (2 methods) |
| static GetDefaultConstructor(…) | Gets the default constructor, or null if there isn’t one. |
| static GetGenericArguments(…) | Gets an array of the generic type arguments for the specified type. |
| static GetProperties(…) | Gets the properties. |
| static GetProperty(…) | Gets the property. |
| static IsAbstract(…) | Determines whether the type is abstract. |
| static IsAssignableFrom(…) | Determines whether an instance of the specified type can be assigned from an instance of the specified parent type. |
| static IsClass(…) | Gets a value indicating whether the specified type is a class type. |
| static IsEnum(…) | Gets a value indicating whether the specified Type represents an enumeration. |
| static IsGenericType(…) | Gets a value indicating whether the specified type is a generic type. |
| static IsSubclassOf(…) | Determines whether an instance of the specified type is a subclass of the current type. |
| static IsValueType(…) | Determines whether the specified Type is a value type. |