Table of Contents

Class FastList<TElem>

Namespace
Vintagestory.API.Datastructures
Assembly
VintagestoryAPI.dll

Does not clear elements in Clear(), but only sets the Count to 0

public class FastList<TElem> : IEnumerable

Type Parameters

TElem
Inheritance
FastList<TElem>
Implements
Inherited Members
Extension Methods

Constructors

FastList()

public FastList()

Properties

Count

public int Count { get; }

Property Value

int

this[int]

public TElem this[int index] { get; set; }

Parameters

index int

Property Value

TElem

Methods

Add(TElem)

public void Add(TElem elem)

Parameters

elem TElem

Clear()

public void Clear()

Contains(TElem)

public bool Contains(TElem needle)

Parameters

needle TElem

Returns

bool

GetEnumerator()

Returns an enumerator that iterates through a collection.

public IEnumerator GetEnumerator()

Returns

IEnumerator

An IEnumerator object that can be used to iterate through the collection.

RemoveAt(int)

public void RemoveAt(int index)

Parameters

index int