TypeFamily<T>
A collection of types with their associated IDs. This collection is designed to store a comprehensive list of all the implementations of a specific interface or base class for the purposes of (de)serialisation.
Type parameters:
| T | where IStorable |
Properties
Indexers
Methods
Add
#Add an id/type pair to this collection.
Add
#Add a type to this collection. This overload requires that the type has a Grasshopper2.IdentityAttribute associated with it.
Parameters:
| type (Type) |
Returns: True if the type was added.
AddRange
#Add a bunch of id/type pairs to this collection.
AddRange
#Add a bunch of types to this collection. This overload requires that the types all have a Grasshopper2.IdentityAttribute associated with them.
Parameters:
| types (params Type[]) |
Instantiate
#Construct an instance of one of the types. This method either throws or returns a constructed instance.