Table of Contents
Extensions for il2cpp ienumerables
public static class Il2CppGenericIEnumerableExt
Inheritance System.Object Il2CppGenericIEnumerableExt
Get the total number of elements
public static int Count<T>(this IEnumerable<T> enumerable);
T
enumerable
Il2CppSystem.Collections.Generic.IEnumerable
Get the IEnumerator as type Il2CppSystem.Collections.IEnumerator. Needed for IEnumerator.MoveNext(). Not the same as
IEnumerable.GetEnumerator()
public static IEnumerator GetEnumeratorCollections<T>(this IEnumerable<T> enumerable);
T
enumerable
Il2CppSystem.Collections.Generic.IEnumerable
Il2CppSystem.Collections.IEnumerator
Return the Item at a specific index
public static Object GetItem<T>(this IEnumerable<T> enumerable, int index);
T
enumerable
Il2CppSystem.Collections.Generic.IEnumerable
index
System.Int32
Return as Il2CppSystem.List
public static List<T> ToIl2CppList<T>(this IEnumerable<T> enumerable)
where T : Il2CppObjectBase;
T
enumerable
Il2CppSystem.Collections.Generic.IEnumerable
Il2CppSystem.Collections.Generic.List
Return as Il2CppReferenceArray
public static Il2CppReferenceArray<T> ToIl2CppReferenceArray<T>(this IEnumerable<T> enumerable)
where T : Object;
T
enumerable
Il2CppSystem.Collections.Generic.IEnumerable
Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray
Return as System.List
public static System.Collections.Generic.List<T> ToList<T>(this IEnumerable<T> enumerable)
where T : Object;
T
enumerable
Il2CppSystem.Collections.Generic.IEnumerable
System.Collections.Generic.List<T>
Return as LockList
public static LockList<T> ToLockList<T>(this IEnumerable<T> enumerable)
where T : Object;
T
enumerable
Il2CppSystem.Collections.Generic.IEnumerable