Class ObservableCompositionSet<T>
- Namespace
- NMF.Models.Collections
- Assembly
- NMF.Models.dll
Denotes the base class for a composition implemented as a set
public class ObservableCompositionSet<T> : ObservableOppositeSet<IModelElement, 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
TThe element type
- Inheritance
-
DecoratedSet<T>ObservableCompositionSet<T>
- Implements
-
ISet<T>ICollection<T>IEnumerable<T>
- Inherited Members
Constructors
ObservableCompositionSet(IModelElement)
Creates a new instance
public ObservableCompositionSet(IModelElement parent)
Parameters
parentIModelElementThe parent model element
Methods
SetOpposite(T, IModelElement)
Sets the opposite
protected override void SetOpposite(T item, IModelElement newParent)
Parameters
itemTthe item for which the opposite should be set
newParentIModelElementthe new parent or null, if the element is deleted