NamedList<T>
An immutable list of values which have names. Note that eventhrough the collection itself is immutable, the values it contains may not be.
Type parameters:
| T |
Constructors
Properties
Indexers
Methods
Add
#public void Add(T instance)
Add a new instance to this collection. This method will throw in case of a name collision.
Parameters:
| instance (T) | Instance to add. |
AddRange
#Add new instances to this collection. This method will throw in case of a name collision.
Parameters:
| instances (List<T>) | Instances to add. |
Contains
#Test whether a specific name has already been defined.
Parameters:
| name (Name) | Name. |
Returns: True if the name has been defined.
Remove
#Remove a specific instance from this collection. Note, the instance must be part of this collection, it is not enough for the instance key to be present.
Parameters:
| instance (T) | Instance to remove. |