Table of Contents

Class TermIndexedCollection<T>

Namespace
RandomizerCore.Logic
Assembly
RandomizerCore.dll
public class TermIndexedCollection<T> : IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable

Type Parameters

T
Inheritance
TermIndexedCollection<T>
Implements
Inherited Members
Extension Methods

Constructors

TermIndexedCollection(TermCollection)

public TermIndexedCollection(TermCollection terms)

Parameters

terms TermCollection

Properties

Count

public int Count { get; }

Property Value

int

this[int]

public T this[int id] { get; set; }

Parameters

id int

Property Value

T

Methods

CreatePopulated<U>(TermCollection)

public static TermIndexedCollection<U> CreatePopulated<U>(TermCollection terms) where U : new()

Parameters

terms TermCollection

Returns

TermIndexedCollection<U>

Type Parameters

U

GetEnumerator()

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

PopulateFrom<U>(TermIndexedCollection<U>, Func<U, T>)

public void PopulateFrom<U>(TermIndexedCollection<U> us, Func<U, T> selector)

Parameters

us TermIndexedCollection<U>
selector Func<U, T>

Type Parameters

U

ZipAction<U>(TermIndexedCollection<U>, Action<U, T>)

public void ZipAction<U>(TermIndexedCollection<U> us, Action<U, T> action)

Parameters

us TermIndexedCollection<U>
action Action<U, T>

Type Parameters

U