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.164 -- Release Build+2ecc531835795528430ed2deb03705370b950bd8
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