Class CollectionExtensions
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public static class CollectionExtensions
- Inheritance
-
objectCollectionExtensions
Methods
FindIndex<T>(IReadOnlyList<T>, Func<T, bool>)
public static int FindIndex<T>(this IReadOnlyList<T> self, Func<T, bool> match)
Parameters
selfIReadOnlyList<T>matchFunc<T, bool>
Returns
- int
Type Parameters
T
FindIndex<T>(IReadOnlyList<T>, T)
public static int FindIndex<T>(this IReadOnlyList<T> self, T elementToFind)
Parameters
selfIReadOnlyList<T>elementToFindT
Returns
- int
Type Parameters
T
GetSafe<T>(IList<T>, int)
public static T GetSafe<T>(this IList<T> self, int index)
Parameters
selfIList<T>indexint
Returns
- T
Type Parameters
T