Skip to Main Content

BTD_Mod_Helper​.Extensions​.Il2CppReferenceArray


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

Il2CppReferenceArray Class

Extensions for il2cpp reference arrays

public static class Il2CppReferenceArray

Inheritance System.Object  Il2CppReferenceArray

Methods

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

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

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

Type parameters

T

Parameters

source Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

predicate System.Func<T,System.Boolean>

Returns

System.Boolean

Il2CppReferenceArray.Any(this Il2CppReferenceArray) Method

Return whether or not there are any elements in this

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

Type parameters

T

Parameters

source Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

Returns

System.Boolean

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

Return the index of the element that matches the predicate

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

Type parameters

T

Parameters

source Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

predicate System.Func<T,System.Boolean>

Returns

System.Int32

Il2CppReferenceArray.ForEach(this Il2CppReferenceArray, Action) Method

Performs the specified action on each element

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

Type parameters

T

Parameters

source Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppReferenceArray

action System.Action<T>

Action to preform on each element

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