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.152 -- Release Build+a7f60f5a7bdd000775ff7f713750a17782d3bcf2
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