Table of Contents

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
AssociationSet<T>
Implements
ISet<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 T

The element to add to the set.

Returns

bool

true if the element is added to the set; false if the element is already in the set.

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

item T

The object to remove from the ICollection<T>.

Returns

bool

true if item was successfully removed from the ICollection<T>; otherwise, false. This method also returns false if item is not found in the original ICollection<T>.

Exceptions

NotSupportedException

The ICollection<T> is read-only.