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 a type to this collection. This overload requires that the type has a Grasshopper2.IdentityAttribute associated with it.
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.
Instantiate
#Construct an instance of one of the types. This method either throws or returns a constructed instance.
Returns: Instance of T.