Gemstone IO Library
Show/Hide TOC

# FileBackedHashSet T(IEnumerable T, IEqualityComparer T) Constructor

Creates a new instance of the FileBackedHashSetT class.

## Definition

Namespace: Gemstone.IO.Collections
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.174 -- Release Build+d66b444368a59db4ecef4512e2cb9c8ad9d6bb5b
C#
View Source Request Example

    public FileBackedHashSet(
    	IEnumerable<T> enumerable,
    	IEqualityComparer<T>? comparer
    )

VB
View Source Request Example

    Public Sub New (
    	enumerable As IEnumerable(Of T),
    	comparer As IEqualityComparer(Of T)
    )

C++
View Source Request Example

    public:
    FileBackedHashSet(
    	IEnumerable<T>^ enumerable,
    	IEqualityComparer<T>^ comparer
    )

JavaScript
View Source Request Example

    Gemstone.IO.Collections.FileBackedHashSet = function(enumerable, comparer);

#### Parameters

enumerable IEnumerable T
  The enumerable whose elements are copied to this hash set.
comparer IEqualityComparer T
  The equality comparer used to compare items in the hash set.

## Exceptions

ArgumentNullException | enumerable is null.
InvalidOperationException | T cannot be serialized.

## See Also

#### Reference

FileBackedHashSetT Class
FileBackedHashSetT Overload
Gemstone.IO.Collections Namespace