Class AssociationOrderedSet<T>
- Namespace
- NMF.Models.Collections
- Assembly
- NMF.Models.dll
Denotes an ordered set implementation to store associated elements
public class AssociationOrderedSet<T> : OrderedSet<T>, IList, ICollection, IOrderedSet<T>, IList<T>, ISet<T>, ICollection<T>, IEnumerable<T>, IEnumerable where T : class, IModelElement
Type Parameters
T
The type of elements
- Inheritance
-
DecoratedSet<T>OrderedSet<T>AssociationOrderedSet<T>
- Implements
-
IOrderedSet<T>IList<T>ISet<T>ICollection<T>IEnumerable<T>
- Inherited Members
Methods
Add(T)
Adds an element to the current set and returns a value to indicate if the element was successfully added.
public override bool Add(T item)
Parameters
item
TThe element to add to the set.
Returns
Clear()
Removes all items from the ICollection<T>.
public override void Clear()
Exceptions
- NotSupportedException
The ICollection<T> is read-only.
Remove(T, int)
Removes the given item at the given arrayIndex
protected override bool Remove(T item, int index)
Parameters
item
TThe item to remove
index
intThe arrayIndex of the item
Returns
- bool
True, if the removal was successful, otherwise false