Method GetAssignableTypes
GetAssignableTypes(Type, List<Type>, Func<Type, bool>)
Adds all types assignable to this one to a list, using an optional predicate test.
Declaration
public static void GetAssignableTypes(this Type type, List<Type> list, Func<Type, bool> predicate = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type against which assignable types are matched. |
| List<Type> | list | The list to which assignable types are appended. |
| Func<Type, bool> | predicate | Custom delegate to filter the type list. Return false to ignore given type. |