Gets instances for all classes of a specified assignable type.
- Namespace
- Statiq
.Common - Containing Type
- ClassCatalog
Syntax
public IEnumerable<object> GetInstances(Type assignableType)
Remarks
This will throw an exception if any matching types do not have a parameterless constructor.
Parameters
Name | Type | Description |
---|---|---|
assignableType | Type | The type of instances to get. |
Return Value
Type | Description |
---|---|
IEnumerable |
Instances for all classes of the specified type. |