Common
A library of common classes.
Set< T > Class Template Reference

A hash set that is data contract serializable. More...

Inheritance diagram for Set< T >:

Public Member Functions

bool Add (T item)
 
void Clear ()
 
bool Contains (T item)
 
void CopyTo (T[] array, int arrayIndex)
 
void ExceptWith (IEnumerable< T > other)
 
HashSet< T >.Enumerator GetEnumerator ()
 
void IntersectWith (IEnumerable< T > other)
 
bool IsProperSubsetOf (IEnumerable< T > other)
 
bool IsProperSupersetOf (IEnumerable< T > other)
 
bool IsSubsetOf (IEnumerable< T > other)
 
bool IsSupersetOf (IEnumerable< T > other)
 
bool Overlaps (IEnumerable< T > other)
 
bool Remove (T item)
 
 Set ()
 Initializes a new hash set. More...
 
 Set (IEnumerable< T > collection)
 Initializes a new hash set from a collection. More...
 
bool SetEquals (IEnumerable< T > other)
 
void SymmetricExceptWith (IEnumerable< T > other)
 
void UnionWith (IEnumerable< T > other)
 

Static Public Member Functions

static implicit operator Set< T > (HashSet< T > set)
 Creates a new data contract hash set with the specified hash set assigned. More...
 

Properties

T[] Array [getset]
 An array of hash set entries. More...
 
int Count [get]
 
HashSet< T > HashSet = new HashSet<T>() [getprivate set]
 The underlying hash set. More...
 
bool IsReadOnly [get]
 

Private Member Functions

void ICollection< T >. Add (T item)
 
T[] GetArray ()
 Returns a new array of hash set entries. More...
 
IEnumerator< T > IEnumerable< T >. GetEnumerator ()
 
IEnumerator IEnumerable. GetEnumerator ()
 

Detailed Description

A hash set that is data contract serializable.

Definition at line 11 of file Set.cs.

Constructor & Destructor Documentation

◆ Set() [1/2]

Set ( )

Initializes a new hash set.

Definition at line 27 of file Set.cs.

◆ Set() [2/2]

Set ( IEnumerable< T >  collection)

Initializes a new hash set from a collection.

Parameters
collectionA collection of values.

Definition at line 36 of file Set.cs.

Member Function Documentation

◆ Add() [1/2]

void ICollection< T >. Add ( item)
private

Definition at line 70 of file Set.cs.

◆ Add() [2/2]

bool Add ( item)

Definition at line 172 of file Set.cs.

◆ Clear()

void Clear ( )

Definition at line 76 of file Set.cs.

◆ Contains()

bool Contains ( item)

Definition at line 82 of file Set.cs.

◆ CopyTo()

void CopyTo ( T[]  array,
int  arrayIndex 
)

Definition at line 88 of file Set.cs.

◆ ExceptWith()

void ExceptWith ( IEnumerable< T >  other)

Definition at line 94 of file Set.cs.

◆ GetArray()

T[] GetArray ( )
private

Returns a new array of hash set entries.

Definition at line 53 of file Set.cs.

◆ GetEnumerator() [1/3]

HashSet< T >.Enumerator GetEnumerator ( )

Definition at line 100 of file Set.cs.

◆ GetEnumerator() [2/3]

IEnumerator< T > IEnumerable< T >. GetEnumerator ( )
private

Definition at line 106 of file Set.cs.

◆ GetEnumerator() [3/3]

IEnumerator IEnumerable. GetEnumerator ( )
private

Definition at line 178 of file Set.cs.

◆ IntersectWith()

void IntersectWith ( IEnumerable< T >  other)

Definition at line 112 of file Set.cs.

◆ IsProperSubsetOf()

bool IsProperSubsetOf ( IEnumerable< T >  other)

Definition at line 118 of file Set.cs.

◆ IsProperSupersetOf()

bool IsProperSupersetOf ( IEnumerable< T >  other)

Definition at line 124 of file Set.cs.

◆ IsSubsetOf()

bool IsSubsetOf ( IEnumerable< T >  other)

Definition at line 130 of file Set.cs.

◆ IsSupersetOf()

bool IsSupersetOf ( IEnumerable< T >  other)

Definition at line 136 of file Set.cs.

◆ operator Set< T >()

static implicit operator Set< T > ( HashSet< T >  set)
static

Creates a new data contract hash set with the specified hash set assigned.

Parameters
setThe hash set.

Definition at line 45 of file Set.cs.

◆ Overlaps()

bool Overlaps ( IEnumerable< T >  other)

Definition at line 142 of file Set.cs.

◆ Remove()

bool Remove ( item)

Definition at line 148 of file Set.cs.

◆ SetEquals()

bool SetEquals ( IEnumerable< T >  other)

Definition at line 154 of file Set.cs.

◆ SymmetricExceptWith()

void SymmetricExceptWith ( IEnumerable< T >  other)

Definition at line 160 of file Set.cs.

◆ UnionWith()

void UnionWith ( IEnumerable< T >  other)

Definition at line 166 of file Set.cs.

Property Documentation

◆ Array

T [] Array
getset

An array of hash set entries.

Definition at line 22 of file Set.cs.

◆ Count

int Count
get

Definition at line 64 of file Set.cs.

◆ HashSet

HashSet<T> HashSet = new HashSet<T>()
getprivate set

The underlying hash set.

Definition at line 16 of file Set.cs.

◆ IsReadOnly

bool IsReadOnly
get

Definition at line 67 of file Set.cs.


The documentation for this class was generated from the following file: