Table of Contents

Class DisposableGameList<T>

Namespace
SkyrimForge.Game
Assembly
SkyrimForge.dll

The entries of a container a CommonLib function returned, where those entries address memory the container owns. Every view among the entries is valid until Dispose().

public sealed class DisposableGameList<T> : IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, IDisposable

Type Parameters

T

The type one entry becomes.

Inheritance
DisposableGameList<T>
Implements
Inherited Members
Extension Methods

Remarks

No finalizer releases the container, because a view copied out of the list can outlive the list. An undisposed list remains allocated for the rest of the session.

Properties

Count

public int Count { get; }

Property Value

int

this[int]

public T this[int index] { get; }

Parameters

index int

Property Value

T

Methods

Dispose()

Releases the container and the memory its entries address.

public void Dispose()

GetEnumerator()

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>