Table of Contents

Class ObservableAssociationSet<T>

Namespace
NMF.Models.Collections
Assembly
NMF.Models.dll

Denotes an observable set to store associated elements

public class ObservableAssociationSet<T> : ObservableSet<T>, IList, ICollection, INotifyCollectionChanged, INotifyCollectionChanging, INotifyPropertyChanged, ISetExpression<T>, ISet<T>, ICollectionExpression<T>, IEnumerableExpression<T>, IEnumerableExpression, ICollection<T>, IEnumerable<T>, IEnumerable where T : class, IModelElement

Type Parameters

T

The type of the elements

Inheritance
ObservableAssociationSet<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.