Show / Hide Table of Contents

Class DecoratedSet<T>

Denotes an extensible implementation of a hashset

Inheritance
object
DecoratedSet<T>
OrderedSet<T>
ObservableSet<T>
OppositeSet<TParent, TCollected>
Implements
ISet<T>
ICollection<T>
IEnumerable<T>
IList
ICollection
IEnumerable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Collections.Generic
Assembly: NMF.Collections.dll
Syntax
public class DecoratedSet<T> : ISet<T>, ICollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable
Type Parameters
Name Description
T

Constructors

| Edit this page View Source

DecoratedSet()

Creates a new instance

Declaration
public DecoratedSet()

Properties

| Edit this page View Source

Count

Declaration
public int Count { get; }
Property Value
Type Description
int
| Edit this page View Source

Items

The actual hashset in which items are stored

Declaration
protected HashSet<T> Items { get; }
Property Value
Type Description
HashSet<T>

Methods

| Edit this page View Source

Add(T)

Declaration
public virtual bool Add(T item)
Parameters
Type Name Description
T item
Returns
Type Description
bool
| Edit this page View Source

Clear()

Declaration
public virtual void Clear()
| Edit this page View Source

Contains(T)

Declaration
public bool Contains(T item)
Parameters
Type Name Description
T item
Returns
Type Description
bool
| Edit this page View Source

CopyTo(T[], int)

Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
Type Name Description
T[] array
int arrayIndex
| Edit this page View Source

ExceptWith(IEnumerable<T>)

Declaration
public void ExceptWith(IEnumerable<T> other)
Parameters
Type Name Description
IEnumerable<T> other
| Edit this page View Source

GetEnumerator()

Declaration
public virtual IEnumerator<T> GetEnumerator()
Returns
Type Description
IEnumerator<T>
| Edit this page View Source

IntersectWith(IEnumerable<T>)

Declaration
public void IntersectWith(IEnumerable<T> other)
Parameters
Type Name Description
IEnumerable<T> other
| Edit this page View Source

IsProperSubsetOf(IEnumerable<T>)

Declaration
public bool IsProperSubsetOf(IEnumerable<T> other)
Parameters
Type Name Description
IEnumerable<T> other
Returns
Type Description
bool
| Edit this page View Source

IsProperSupersetOf(IEnumerable<T>)

Declaration
public bool IsProperSupersetOf(IEnumerable<T> other)
Parameters
Type Name Description
IEnumerable<T> other
Returns
Type Description
bool
| Edit this page View Source

IsSubsetOf(IEnumerable<T>)

Declaration
public bool IsSubsetOf(IEnumerable<T> other)
Parameters
Type Name Description
IEnumerable<T> other
Returns
Type Description
bool
| Edit this page View Source

IsSupersetOf(IEnumerable<T>)

Declaration
public bool IsSupersetOf(IEnumerable<T> other)
Parameters
Type Name Description
IEnumerable<T> other
Returns
Type Description
bool
| Edit this page View Source

Overlaps(IEnumerable<T>)

Declaration
public bool Overlaps(IEnumerable<T> other)
Parameters
Type Name Description
IEnumerable<T> other
Returns
Type Description
bool
| Edit this page View Source

Remove(T)

Declaration
public virtual bool Remove(T item)
Parameters
Type Name Description
T item
Returns
Type Description
bool
| Edit this page View Source

SetEquals(IEnumerable<T>)

Declaration
public bool SetEquals(IEnumerable<T> other)
Parameters
Type Name Description
IEnumerable<T> other
Returns
Type Description
bool
| Edit this page View Source

SymmetricExceptWith(IEnumerable<T>)

Declaration
public void SymmetricExceptWith(IEnumerable<T> other)
Parameters
Type Name Description
IEnumerable<T> other
| Edit this page View Source

UnionWith(IEnumerable<T>)

Declaration
public void UnionWith(IEnumerable<T> other)
Parameters
Type Name Description
IEnumerable<T> other

Implements

ISet<T>
ICollection<T>
IEnumerable<T>
IList
ICollection
IEnumerable
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX