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.143 -- Release Build+37d022088aab2458baec8e7580132f50f5d9f39c
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