Table of Contents

Class CompositionSet<T>

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

Denotes the base class for a composition implemented as a set

public class CompositionSet<T> : OppositeSet<IModelElement, T>, ISet<T>, ICollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable where T : class, IModelElement

Type Parameters

T

The element type

Inheritance
CompositionSet<T>
Implements
ISet<T>
Inherited Members

Constructors

CompositionSet(IModelElement)

Creates a new instance

public CompositionSet(IModelElement parent)

Parameters

parent IModelElement

The parent model element

Methods

SetOpposite(T, IModelElement)

Sets the opposite of the given item

protected override void SetOpposite(T item, IModelElement newParent)

Parameters

item T

the item

newParent IModelElement

the new parent or null, if the item is removed from the collection