Show / Hide Table of Contents

Struct PooledList<T>

A disposable struct that allows access to ListPool<T> instances via the using syntax.

Implements
System.IDisposable
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Liminal.SDK.Collections
Assembly: Liminal.SDK.dll
Syntax
public struct PooledList<T> : IDisposable
Type Parameters
Name Description
T

The type of the list

Examples

An example of how to use a disposable PooledList struct.

using (var pList = new PooledList<int>())
{
    var list = pList.List;
    // .. Do something with list ..
}

Properties

| Improve this Doc View Source

List

Gets the pooled list assigned assigned to the struct.

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

Methods

| Improve this Doc View Source

Dispose()

Disposes of the pooled list, returning it to the pool.

Declaration
public void Dispose()

Implements

System.IDisposable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX