Class OppositeSet<TParent, TCollected>
Inheritance
OppositeSet<TParent, TCollected>
Assembly: NMF.Collections.dll
Syntax
public abstract class OppositeSet<TParent, TCollected> : DecoratedSet<TCollected>, ISet<TCollected>, ICollection<TCollected>, IEnumerable<TCollected>, IList, ICollection, IEnumerable
Type Parameters
Name |
Description |
TParent |
|
TCollected |
|
Constructors
|
Edit this page
View Source
OppositeSet(TParent)
Declaration
protected OppositeSet(TParent parent)
Parameters
Type |
Name |
Description |
TParent |
parent |
|
Properties
|
Edit this page
View Source
Parent
Declaration
public TParent Parent { get; }
Property Value
Methods
|
Edit this page
View Source
Add(TCollected)
Declaration
public override bool Add(TCollected item)
Parameters
Type |
Name |
Description |
TCollected |
item |
|
Returns
Overrides
|
Edit this page
View Source
Clear()
Declaration
public override void Clear()
Overrides
|
Edit this page
View Source
Remove(TCollected)
Declaration
public override bool Remove(TCollected item)
Parameters
Type |
Name |
Description |
TCollected |
item |
|
Returns
Overrides
|
Edit this page
View Source
SetOpposite(TCollected, TParent)
Declaration
protected abstract void SetOpposite(TCollected item, TParent newParent)
Parameters
Type |
Name |
Description |
TCollected |
item |
|
TParent |
newParent |
|
Implements