Table of Contents

Class CollectionExtensions

Namespace
Root
Assembly
SPZGameAssembly.dll
public static class CollectionExtensions
Inheritance
object
CollectionExtensions

Methods

FindIndex<T>(IReadOnlyList<T>, Func<T, bool>)

public static int FindIndex<T>(this IReadOnlyList<T> self, Func<T, bool> match)

Parameters

self IReadOnlyList<T>
match Func<T, bool>

Returns

int

Type Parameters

T

FindIndex<T>(IReadOnlyList<T>, T)

public static int FindIndex<T>(this IReadOnlyList<T> self, T elementToFind)

Parameters

self IReadOnlyList<T>
elementToFind T

Returns

int

Type Parameters

T

GetSafe<T>(IList<T>, int)

public static T GetSafe<T>(this IList<T> self, int index)

Parameters

self IList<T>
index int

Returns

T

Type Parameters

T