Parameters
Remarksmethod: method to invoke obJ: object instance params: arguments to the method exc: exception information.
Invokes the method represented by method on the object obj. obj is the 'this' pointer, it should be NULL for static methods, a MonoObject* for object instances and a pointer to the value type for value types. The params array contains the arguments to the method with the same convention: MonoObject* pointers for object instances and pointers to the value type otherwise.
From unmanaged code you'll usually use the mono_runtime_invoke() variant. Note that this function doesn't handle virtual methods for you, it will exec the exact method you pass: we still need to expose a function to lookup the derived class implementation of a virtual method (there are examples of this in the code, though).
You can pass NULL as the exc argument if you don't want to catch exceptions, otherwise, *exc will be set to the exception thrown, if any. if an exception is thrown, you can't use the MonoObject* result from the function.
If the method returns a value type, it is boxed in an object reference. If you want to invoke generic methods, you must call the method on the "inflated" class, which you can obtain from the mono_object_get_class()
Parameters
Remarksmethod: method to invoke obJ: object instance params: arguments to the method exc: exception information.
Invokes the method represented by method on the object obj. obj is the 'this' pointer, it should be NULL for static methods, a MonoObject* for object instances and a pointer to the value type for value types. The params array contains the arguments to the method with the same convention: MonoObject* pointers for object instances and pointers to the value type otherwise. The _invoke_array variant takes a C# object[] as the params argument (MonoArray *params): in this case the value types are boxed inside the respective reference representation.
From unmanaged code you'll usually use the mono_runtime_invoke() variant. Note that this function doesn't handle virtual methods for you, it will exec the exact method you pass: we still need to expose a function to lookup the derived class implementation of a virtual method (there are examples of this in the code, though).
You can pass NULL as the exc argument if you don't want to catch exceptions, otherwise, *exc will be set to the exception thrown, if any. if an exception is thrown, you can't use the MonoObject* result from the function.
If the method returns a value type, it is boxed in an object reference.
Parameters
Returnsreal_proxy: pointer to a RealProxy object msg: The MonoMethodMessage to execute exc: used to store exceptions out_args: used to store output arguments
the result object.Remarks
This is used to call RealProxy::Invoke(). RealProxy::Invoke() returns an IMessage interface and it is not trivial to extract results from there. So we call an helper method PrivateInvoke instead of calling RealProxy::Invoke() directly.
Parameters
Remarksdelegate: pointer to a delegate object. params: parameters for the delegate. exc: Pointer to the exception result.
Invokes the delegate method delegate with the parameters provided. You can pass NULL as the exc argument if you don't want to catch exceptions, otherwise, *exc will be set to the exception thrown, if any. if an exception is thrown, you can't use the MonoObject* result from the function.
Parameters
Remarksmethod: method to encapsulate params: parameters to the method invoke: optional, delegate invoke. cb: async callback delegate. state: state passed to the async callback.
Translates arguments pointers into a MonoMethodMessage.
Parameters
Remarksdesc: method description to be released
Releases the MonoMethodDesc object desc.
Parameters
Returnsname: the method name. include_namespace: whether the name includes a namespace or not.
a parsed representation of the method description.Remarks
Creates a method description for name, which conforms to the following specification: [namespace.]classname:methodname[(args...)] in all the loaded assemblies. Both classname and methodname can contain '*' which matches anything.
Remarks
Restore results from message based processing back to arguments pointers
Remarks
Return the signature of the method M. On failure, returns NULL.