Show / Hide Table of Contents

Class PooledHashSetHolder<T>

Struct holding a pooled System.Collections.Generic.HashSet<> instance. Values of this type get returned from the New methods on PooledSystem.Collections.Generic.HashSet<> and provide a strongly typed disposable wrapper around the resource.

Inheritance
System.Object
PooledHashSetHolder<T>
Implements
System.IDisposable
Namespace: System.Collections.Generic
Assembly: Nuqleon.Memory.dll
Syntax
public sealed class PooledHashSetHolder<T> : ValueType, IDisposable
Type Parameters
Name Description
T

The type of elements in the hash set.

Constructors

PooledHashSetHolder(PooledObject<PooledHashSet<T>>)

Creates a new holder for the given pooled hash set object.

Declaration
public PooledHashSetHolder(PooledObject<PooledHashSet<T>> obj)
Parameters
Type Name Description
PooledObject<PooledHashSet<T>> obj

Pooled hash set object to create a holder for.

Properties

HashSet

Gets the System.Collections.Generic.HashSet<> instance held by this instance.

Declaration
public HashSet<T> HashSet { get; }
Property Value
Type Description
System.Collections.Generic.HashSet<T>

The System.Collections.Generic.HashSet<> instance held by the holder.

Methods

Dispose()

Returns the pooled System.Collections.Generic.HashSet<> instance back to the pool.

Declaration
public void Dispose()

Implements

System.IDisposable
In This Article
Back to top Generated by DocFX