Method IsDefinedGetInheritedTypes
IsDefinedGetInheritedTypes<TAttribute>(Type, List<Type>)
Returns an array of types from the current type back to the declaring type that includes an inherited attribute.
Declaration
public static void IsDefinedGetInheritedTypes<TAttribute>(this Type type, List<Type> types) where TAttribute : Attribute
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type that has the attribute or inherits the attribute. |
List<Type> | types | A list to which matching types will be added. |
Type Parameters
Name | Description |
---|---|
TAttribute | Type of attribute we are checking if is defined. |