Class AssociationSet<T>
- Namespace
- NMF.Models.Collections
- Assembly
- NMF.Models.dll
Denotes a set to store associated elements
public class AssociationSet<T> : DecoratedSet<T>, ISet<T>, ICollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable where T : class, IModelElement
Type Parameters
T
- Inheritance
-
DecoratedSet<T>AssociationSet<T>
- Implements
-
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
itemTThe 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)
Removes the first occurrence of a specific object from the ICollection<T>.
public override bool Remove(T item)
Parameters
itemTThe object to remove from the ICollection<T>.
Returns
- bool
true if
itemwas successfully removed from the ICollection<T>; otherwise, false. This method also returns false ifitemis not found in the original ICollection<T>.
Exceptions
- NotSupportedException
The ICollection<T> is read-only.