Skip to Main Content

BTD_Mod_Helper​.Extensions​.Il2CppGenericIEnumerableExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

Il2CppGenericIEnumerableExt Class

Extensions for il2cpp ienumerables

public static class Il2CppGenericIEnumerableExt

Inheritance System.Object  Il2CppGenericIEnumerableExt

Methods

Il2CppGenericIEnumerableExt.Count(this IEnumerable) Method

Get the total number of elements

public static int Count<T>(this IEnumerable<T> enumerable);

Type parameters

T

Parameters

enumerable Il2CppSystem.Collections.Generic.IEnumerable

Returns

System.Int32

Il2CppGenericIEnumerableExt.GetEnumeratorCollections(this IEnumerable) Method

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);

Type parameters

T

Parameters

enumerable Il2CppSystem.Collections.Generic.IEnumerable

Returns

Il2CppSystem.Collections.IEnumerator

Il2CppGenericIEnumerableExt.GetItem(this IEnumerable, int) Method

Return the Item at a specific index

public static Object GetItem<T>(this IEnumerable<T> enumerable, int index);

Type parameters

T

Parameters

enumerable Il2CppSystem.Collections.Generic.IEnumerable

index System.Int32

Returns

Il2CppSystem.Object

Il2CppGenericIEnumerableExt.ToIl2CppList(this IEnumerable) Method

Return as Il2CppSystem.List

public static List<T> ToIl2CppList<T>(this IEnumerable<T> enumerable)
    where T : Il2CppObjectBase;

Type parameters

T

Parameters

enumerable Il2CppSystem.Collections.Generic.IEnumerable

Returns

Il2CppSystem.Collections.Generic.List

Il2CppGenericIEnumerableExt.ToIl2CppReferenceArray(this IEnumerable) Method

Return as Il2CppReferenceArray

public static Il2CppReferenceArray<T> ToIl2CppReferenceArray<T>(this IEnumerable<T> enumerable)
    where T : Object;

Type parameters

T

Parameters

enumerable Il2CppSystem.Collections.Generic.IEnumerable

Returns

Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Il2CppGenericIEnumerableExt.ToList(this IEnumerable) Method

Return as System.List

public static System.Collections.Generic.List<T> ToList<T>(this IEnumerable<T> enumerable)
    where T : Object;

Type parameters

T

Parameters

enumerable Il2CppSystem.Collections.Generic.IEnumerable

Returns

System.Collections.Generic.List<T>

Il2CppGenericIEnumerableExt.ToLockList(this IEnumerable) Method

Return as LockList

public static LockList<T> ToLockList<T>(this IEnumerable<T> enumerable)
    where T : Object;

Type parameters

T

Parameters

enumerable Il2CppSystem.Collections.Generic.IEnumerable

Returns

Il2CppAssets.Scripts.Utils.LockList

To learn how to download BTD Mod Helper and install mods, click here