Skip to Main Content

BTD_Mod_Helper​.Extensions​.Il2CppGenericIEnumerable


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

Il2CppGenericIEnumerable Class

Extensions for Il2cpp Ienumerables

public static class Il2CppGenericIEnumerable

Inheritance System.Object  Il2CppGenericIEnumerable

Methods

Il2CppGenericIEnumerable.Any(this IEnumerable, Func<T,bool>) Method

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

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

Type parameters

T

Parameters

source Il2CppSystem.Collections.Generic.IEnumerable

predicate System.Func<T,System.Boolean>

Returns

System.Boolean

Il2CppGenericIEnumerable.Any(this IEnumerable) Method

Return whether or not there are any elements in this

public static bool Any<T>(this IEnumerable<T> source)
    where T : Object;

Type parameters

T

Parameters

source Il2CppSystem.Collections.Generic.IEnumerable

Returns

System.Boolean

Il2CppGenericIEnumerable.First(this IEnumerable) Method

Return the first element in the collection

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

Type parameters

T

Parameters

source Il2CppSystem.Collections.Generic.IEnumerable

Returns

T

Il2CppGenericIEnumerable.FirstOrDefault(this IEnumerable, Func<T,bool>) Method

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

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

Type parameters

T

Parameters

source Il2CppSystem.Collections.Generic.IEnumerable

predicate System.Func<T,System.Boolean>

Returns

T

Il2CppGenericIEnumerable.FirstOrDefault(this IEnumerable) Method

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

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

Type parameters

T

Parameters

source Il2CppSystem.Collections.Generic.IEnumerable

Returns

T

Il2CppGenericIEnumerable.ForEach(this IEnumerable, Action) Method

Performs the specified action on each element

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

Type parameters

T

Parameters

source Il2CppSystem.Collections.Generic.IEnumerable

action System.Action<T>

Action to preform on each element

Il2CppGenericIEnumerable.Last(this IEnumerable) Method

Return the last item in the collection

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

Type parameters

T

Parameters

source Il2CppSystem.Collections.Generic.IEnumerable

Returns

T

Il2CppGenericIEnumerable.LastOrDefault(this IEnumerable, Func<T,bool>) Method

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

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

Type parameters

T

Parameters

source Il2CppSystem.Collections.Generic.IEnumerable

predicate System.Func<T,System.Boolean>

Returns

T

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