Gets all types assignable to a specified type.
- Namespace
- Statiq
.Common - Containing Type
- ClassCatalog
Syntax
public IEnumerable<Type> GetTypesAssignableTo(Type assignableType, bool includeAbstract = false)
Parameters
Name | Type | Description |
---|---|---|
assignableType | Type | The type of classes to get. |
includeAbstract | bool | true to include abstract class types, false otherwise. |
Return Value
Type | Description |
---|---|
IEnumerable |
All classes of the specified type. |