Constructor HashSet
HashSet()
Declaration
public HashSet()
HashSet(MemoryType)
Create a hash set with natural item equalityComparer and default fill threshold (66%) and initial table size (16).
Declaration
public HashSet(MemoryType memoryType = MemoryType.Normal)
Parameters
Type | Name | Description |
---|---|---|
MemoryType | memoryType |
HashSet(Collections.Generic.IEqualityComparer<T>, MemoryType)
Create a hash set with external item equalityComparer and default fill threshold (66%) and initial table size (16).
Declaration
public HashSet(Collections.Generic.IEqualityComparer<T> itemequalityComparer, MemoryType memoryType = MemoryType.Normal)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEqualityComparer<T> | itemequalityComparer | The external item equalitySCG.Comparer |
MemoryType | memoryType |
HashSet(Int32, Collections.Generic.IEqualityComparer<T>, MemoryType)
Create a hash set with external item equalityComparer and default fill threshold (66%)
Declaration
public HashSet(int capacity, Collections.Generic.IEqualityComparer<T> itemequalityComparer, MemoryType memoryType = MemoryType.Normal)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity | Initial table size (rounded to power of 2, at least 16) |
System.Collections.Generic.IEqualityComparer<T> | itemequalityComparer | The external item equalitySCG.Comparer |
MemoryType | memoryType |
HashSet(Int32, Double, Collections.Generic.IEqualityComparer<T>, MemoryType)
Create a hash set with external item equalityComparer.
Declaration
public HashSet(int capacity, double fill, Collections.Generic.IEqualityComparer<T> itemequalityComparer, MemoryType memoryType = MemoryType.Normal)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity | Initial table size (rounded to power of 2, at least 16) |
System.Double | fill | Fill threshold (in range 10% to 90%) |
System.Collections.Generic.IEqualityComparer<T> | itemequalityComparer | The external item equalitySCG.Comparer |
MemoryType | memoryType |