Table of Contents

Class SunamoHashSetWithoutDuplicates<T>

Namespace
SunamoCollectionsGeneric.Collections
Assembly
SunamoCollectionsGeneric.dll

HashSet that tracks and reports duplicate items during addition

public class SunamoHashSetWithoutDuplicates<T>

Type Parameters

T

The type of elements in the set

Inheritance
SunamoHashSetWithoutDuplicates<T>
Inherited Members
Extension Methods

Constructors

SunamoHashSetWithoutDuplicates()

Initializes a new instance of the SunamoHashSetWithoutDuplicates class

public SunamoHashSetWithoutDuplicates()

SunamoHashSetWithoutDuplicates(int)

Initializes a new instance with the specified capacity

public SunamoHashSetWithoutDuplicates(int capacity)

Parameters

capacity int

The initial capacity of the hash set

Properties

Items

Gets or sets the underlying HashSet of unique items

public HashSet<T> Items { get; set; }

Property Value

HashSet<T>

Methods

AddRange(IList<T>, ProgressStateCAG)

Adds a range of values to the set and returns the duplicates that were not added

public List<T> AddRange(IList<T> list, ProgressStateCAG progressState)

Parameters

list IList<T>

The list of values to add

progressState ProgressStateCAG

Progress state for tracking operation progress

Returns

List<T>

A list of duplicate values that were already in the set