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