C# Tutorial HashSet

Add

  1. Add element to HashSet in CSharp
  1. Check if HashSet and the specified collection contain the same elements in CSharp

Properties

  1. Check if a HashSet and a specified collection share common elements in CSharp
  2. Check if a HashSet contains the specified element in CSharp
  3. Get IEqualityComparer in the HashSet in CSharp
  4. Get the number of elements that are contained in HashSet in CSharp
  5. Set the capacity of a HashSet to the actual number of elements it contains in CSharp

Set-Operation

  1. Check if a HashSet is a proper subset of the specified collection in CSharp
  2. Check if a HashSet is a proper superset of the specified collection in CSharp
  3. Check if a HashSet is a subset of the specified collection in CSharp
  4. Check if a HashSet is a superset of the specified collection in CSharp
  5. Do Symmetric Except between two HashSet in CSharp

Copy

  1. Copy HashSet to an array, starting at the specified array index in CSharp
  2. Copy specified number of elements of a HashSet to an array, starting at the specified array index in CSharp
  3. Copy the elements of a HashSet to an array in CSharp

Create

  1. Create HashSet from another collection in CSharp
  2. Create HashSet with default equality comparer in CSharp
  3. Create IEqualityComparer object that can be used for equality testing of a HashSet in CSharp
  4. Create a the HashSet with specified equality comparer in CSharp

Intersect

  1. Intersect one HashSet to another HashSet in CSharp

Remove

  1. Remove all elements from a HashSet in CSharp
  2. Remove all elements in a collection from a HashSet in CSharp
  3. Remove elements from a HashSet with conditions defined by the predicate in CSharp
  4. Remove the specified element from a HashSet in CSharp

Union

  1. Union two HashSet in CSharp




















Home »
  C# Tutorial »
    Collections »




ArrayList
BitArray
Collection
Comparer
HashSet
Hashtable
LinkedList
List
ListDictionary
OrderedDictionary
Queue
SortedList
SortedSet
Stack
StringCollection
StringDictionary