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.153 -- Release Build+a1350aee4a607e9bfa0fab3daecdf1d65d174e53
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