public IL2CPP_Object Invoke(IL2CPP_Object obj) => Invoke(obj.Ptr, new IntPtr[] { IntPtr.Zero });
public IL2CPP_Object Invoke(IL2CPP_Object obj, params IntPtr[] paramtbl) => Invoke(obj.Ptr, paramtbl);
/// <summary> /// Invokes the method with the provided 'this' reference and parameters. /// Parameters can be an array of value types, <see cref="string"/>, and <see cref="IL2CPP_Object"/> /// <para>An <see cref="InvalidCastException"/> is thrown if any of the parameters are not valid types</para> /// <para>An <see cref="InvalidOperationException"/> is thrown if the Invoke fails</para> /// </summary> /// <param name="obj">The 'this' reference to call the method on. /// If this <see cref="IL2CPP_Method"/> is of a static method, provide a null for this parameter</param> /// <param name="paramtbl">Parameters to supply to this method. Includes the generic parameters (if there is any)</param> /// <returns>The resultant object from the Invoke</returns> /// <exception cref="InvalidCastException"></exception> /// <exception cref="InvalidOperationException"></exception> public IL2CPP_Object Invoke(IL2CPP_Object obj, params object[] paramtbl) => Invoke(obj, IL2CPP.ObjectArrayToIntPtrArray(paramtbl));