Skip to Main Content

BTD_Mod_Helper​.Extensions​.Il2CppSystemObjectExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

Il2CppSystemObjectExt Class

Extensions for Il2cpp objects

public static class Il2CppSystemObjectExt

Inheritance System.Object  Il2CppSystemObjectExt

Methods

Il2CppSystemObjectExt.Is(this Il2CppObjectBase, T) Method

Check if object is the same type as T

public static bool Is<T>(this Il2CppObjectBase instance, out T castObject)
    where T : Il2CppObjectBase;

Type parameters

T

Type to check

Parameters

instance Il2CppInterop.Runtime.InteropTypes.Il2CppObjectBase

castObject T

The casted object if this is of type T

Returns

System.Boolean

Il2CppSystemObjectExt.Is(this Il2CppObjectBase) Method

Check if object is the same type as T

public static bool Is<T>(this Il2CppObjectBase instance)
    where T : Il2CppObjectBase;

Type parameters

T

Type to check

Parameters

instance Il2CppInterop.Runtime.InteropTypes.Il2CppObjectBase

Returns

System.Boolean

Il2CppSystemObjectExt.Is(this T, T) Method

Check if object is the same type as T

public static bool Is<T>(this T instance, out T castObject)
    where T : Il2CppObjectBase;

Type parameters

T

Type to check

Parameters

instance T

castObject T

The casted object if this is of type T

Returns

System.Boolean

Il2CppSystemObjectExt.IsType(this Object, T) Method

Check if object is the same type as T

public static bool IsType<T>(this Object instance, out T castObject)
    where T : Object;

Type parameters

T

Type to check

Parameters

instance Il2CppSystem.Object

castObject T

The casted object if this is of type T

Returns

System.Boolean

Il2CppSystemObjectExt.IsType(this Object) Method

Check if object is the same type as T

public static bool IsType<T>(this Object instance)
    where T : Object;

Type parameters

T

Type to check

Parameters

instance Il2CppSystem.Object

Returns

System.Boolean

Il2CppSystemObjectExt.ReferenceEquals(this Il2CppObjectBase, Il2CppObjectBase) Method

Is this Reference equal to another Object's Reference?

public static bool ReferenceEquals(this Il2CppObjectBase instance, Il2CppObjectBase to);

Parameters

instance Il2CppInterop.Runtime.InteropTypes.Il2CppObjectBase

to Il2CppInterop.Runtime.InteropTypes.Il2CppObjectBase

Object to compare to

Returns

System.Boolean

Il2CppSystemObjectExt.ToIl2Cpp(this bool) Method

Box a bool into an Il2cpp object

public static Object ToIl2Cpp(this bool b);

Parameters

b System.Boolean

Returns

Il2CppSystem.Object

Il2CppSystemObjectExt.ToIl2Cpp(this float) Method

Box a float into an Il2cpp object

public static Object ToIl2Cpp(this float f);

Parameters

f System.Single

Returns

Il2CppSystem.Object

Il2CppSystemObjectExt.ToIl2Cpp(this int) Method

Box a int into an Il2cpp object

public static Object ToIl2Cpp(this int i);

Parameters

i System.Int32

Returns

Il2CppSystem.Object

Il2CppSystemObjectExt.TypeName(this Il2CppObjectBase) Method

Gets the exact il2cpp type name of an object

public static string TypeName(this Il2CppObjectBase obj);

Parameters

obj Il2CppInterop.Runtime.InteropTypes.Il2CppObjectBase

Returns

System.String

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