Skip to Main Content

BTD_Mod_Helper​.Extensions​.Il2CppIEnumerator


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

Il2CppIEnumerator Class

Extensions for il2cpp ienumerators

public static class Il2CppIEnumerator

Inheritance System.Object  Il2CppIEnumerator

Methods

Il2CppIEnumerator.Any(this IEnumerator, Func<T,bool>) Method

Return whether or not there are any elements in this that match the predicate

public static bool Any<T>(this IEnumerator source, System.Func<T,bool> predicate)
    where T : Object;

Type parameters

T

Parameters

source Il2CppSystem.Collections.IEnumerator

predicate System.Func<T,System.Boolean>

Returns

System.Boolean

Il2CppIEnumerator.FindIndex(this IEnumerator, Func<T,bool>) Method

Return the index of the element that matches the predicate

public static int FindIndex<T>(this IEnumerator source, System.Func<T,bool> predicate)
    where T : Object;

Type parameters

T

Parameters

source Il2CppSystem.Collections.IEnumerator

predicate System.Func<T,System.Boolean>

Returns

System.Int32

Il2CppIEnumerator.First(this IEnumerator, Func<T,bool>) Method

Return the first element that matches the predicate

public static T First<T>(this IEnumerator source, System.Func<T,bool> predicate)
    where T : Object;

Type parameters

T

Parameters

source Il2CppSystem.Collections.IEnumerator

predicate System.Func<T,System.Boolean>

Returns

T

Il2CppIEnumerator.First(this IEnumerator) Method

Return the first element in the collection

public static T First<T>(this IEnumerator source)
    where T : Object;

Type parameters

T

Parameters

source Il2CppSystem.Collections.IEnumerator

Returns

T

Il2CppIEnumerator.FirstOrDefault(this IEnumerator, Func<T,bool>) Method

Return the first element that matches the predicate, or return default

public static T FirstOrDefault<T>(this IEnumerator source, System.Func<T,bool> predicate)
    where T : Object;

Type parameters

T

Parameters

source Il2CppSystem.Collections.IEnumerator

predicate System.Func<T,System.Boolean>

Returns

T

Il2CppIEnumerator.FirstOrDefault(this IEnumerator) Method

Return the first element in the collection, or return default if it's null

public static T FirstOrDefault<T>(this IEnumerator source)
    where T : Object;

Type parameters

T

Parameters

source Il2CppSystem.Collections.IEnumerator

Returns

T

Il2CppIEnumerator.ForEach(this IEnumerator, Action) Method

Performs the specified action on each element

public static void ForEach<T>(this IEnumerator source, System.Action<T> action)
    where T : Object;

Type parameters

T

Parameters

source Il2CppSystem.Collections.IEnumerator

action System.Action<T>

Action to preform on each element

Il2CppIEnumerator.Last(this IEnumerator) Method

Return the last item in the collection

public static T Last<T>(this IEnumerator source)
    where T : Object;

Type parameters

T

Parameters

source Il2CppSystem.Collections.IEnumerator

Returns

T

Il2CppIEnumerator.LastOrDefault(this IEnumerator, Func<T,bool>) Method

Return the last item in the collection that meets the condition, or return default

public static T LastOrDefault<T>(this IEnumerator source, System.Func<T,bool> predicate)
    where T : Object;

Type parameters

T

Parameters

source Il2CppSystem.Collections.IEnumerator

predicate System.Func<T,System.Boolean>

Returns

T

Il2CppIEnumerator.Where(this IEnumerator, Func<T,bool>) Method

Return all elements that match the predicate

public static System.Collections.Generic.List<T> Where<T>(this IEnumerator source, System.Func<T,bool> predicate)
    where T : Object;

Type parameters

T

Parameters

source Il2CppSystem.Collections.IEnumerator

predicate System.Func<T,System.Boolean>

Returns

System.Collections.Generic.List<T>

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