3 <h3>Invoking Methods
</h3>
5 <h4><a name=
"api:mono_runtime_invoke">mono_runtime_invoke
</a></h4>
7 If you want to invoke generic methods, you must call the method on the
8 "inflated" class, which you can obtain from the
9 <tt>mono_object_get_class()
</tt>
15 clazz = mono_object_get_class (obj);
18 * If there are more Add methods declared, you
19 * may use mono_method_desc_search_in_class (clazz,
":Add(T)"),
20 * you must substitute
":Add(T)" with the correct type, for example
21 * for List
<int
>, you would use
":Add(int)".
23 method = mono_class_get_method_from_name (clazz,
"Add",
1);
24 mono_runtime_invoke (method, obj, args,
&exception);
28 <h4><a name=
"api:mono_runtime_invoke_array">mono_runtime_invoke_array
</a></h4>
29 <h4><a name=
"api:mono_remoting_invoke">mono_remoting_invoke
</a></h4>
30 <h4><a name=
"api:mono_runtime_delegate_invoke">mono_runtime_delegate_invoke
</a></h4>
32 <h4><a name=
"api:mono_method_call_message_new">mono_method_call_message_new
</a></h4>
33 <h4><a name=
"api:mono_method_desc_free">mono_method_desc_free
</a></h4>
34 <h4><a name=
"api:mono_method_desc_from_method">mono_method_desc_from_method
</a></h4>
35 <h4><a name=
"api:mono_method_desc_full_match">mono_method_desc_full_match
</a></h4>
36 <h4><a name=
"api:mono_method_desc_match">mono_method_desc_match
</a></h4>
37 <h4><a name=
"api:mono_method_desc_new">mono_method_desc_new
</a></h4>
38 <h4><a name=
"api:mono_method_desc_search_in_class">mono_method_desc_search_in_class
</a></h4>
39 <h4><a name=
"api:mono_method_desc_search_in_image">mono_method_desc_search_in_image
</a></h4>
40 <h4><a name=
"api:mono_method_full_name">mono_method_full_name
</a></h4>
41 <h4><a name=
"api:mono_method_get_class">mono_method_get_class
</a></h4>
42 <h4><a name=
"api:mono_method_get_flags">mono_method_get_flags
</a></h4>
43 <h4><a name=
"api:mono_method_get_last_managed">mono_method_get_last_managed
</a></h4>
44 <h4><a name=
"api:mono_method_get_marshal_info">mono_method_get_marshal_info
</a></h4>
45 <h4><a name=
"api:mono_method_get_name">mono_method_get_name
</a></h4>
46 <h4><a name=
"api:mono_method_get_object">mono_method_get_object
</a></h4>
47 <h4><a name=
"api:mono_method_get_param_names">mono_method_get_param_names
</a></h4>
48 <h4><a name=
"api:mono_method_get_param_token">mono_method_get_param_token
</a></h4>
49 <h4><a name=
"api:mono_method_get_signature">mono_method_get_signature
</a></h4>
50 <h4><a name=
"api:mono_method_get_index">mono_method_get_index
</a></h4>
51 <h4><a name=
"api:mono_method_get_signature_full">mono_method_get_signature_full
</a></h4>
52 <h4><a name=
"api:mono_method_get_token">mono_method_get_token
</a></h4>
53 <h4><a name=
"api:mono_method_get_wrapper_data">mono_method_get_wrapper_data
</a></h4>
54 <h4><a name=
"api:mono_method_has_marshal_info">mono_method_has_marshal_info
</a></h4>
55 <h4><a name=
"api:mono_method_return_message_restore">mono_method_return_message_restore
</a></h4>
56 <h4><a name=
"api:mono_method_same_domain">mono_method_same_domain
</a></h4>
57 <h4><a name=
"api:mono_method_verify">mono_method_verify
</a></h4>
59 <h3>Method Signatures
</h3>
61 <h4><a name=
"api:mono_method_signature">mono_method_signature
</a></h4>
62 <h4><a name=
"api:mono_signature_explicit_this">mono_signature_explicit_this
</a></h4>
63 <h4><a name=
"api:mono_signature_get_call_conv">mono_signature_get_call_conv
</a></h4>
64 <h4><a name=
"api:mono_signature_get_desc">mono_signature_get_desc
</a></h4>
65 <h4><a name=
"api:mono_signature_get_param_count">mono_signature_get_param_count
</a></h4>
66 <h4><a name=
"api:mono_signature_get_params">mono_signature_get_params
</a></h4>
67 <h4><a name=
"api:mono_signature_get_return_type">mono_signature_get_return_type
</a></h4>
68 <h4><a name=
"api:mono_signature_hash">mono_signature_hash
</a></h4>
69 <h4><a name=
"api:mono_signature_is_instance">mono_signature_is_instance
</a></h4>
70 <h4><a name=
"api:mono_signature_vararg_start">mono_signature_vararg_start
</a></h4>
72 <h3>Methods Header Operations
</h3>
74 <h4><a name=
"api:mono_method_get_header">mono_method_get_header
</a></h4>
75 <h4><a name=
"api:mono_method_header_get_clauses">mono_method_header_get_clauses
</a></h4>
76 <h4><a name=
"api:mono_method_header_get_code">mono_method_header_get_code
</a></h4>
77 <h4><a name=
"api:mono_method_header_get_locals">mono_method_header_get_locals
</a></h4>
78 <h4><a name=
"api:mono_method_header_get_num_clauses">mono_method_header_get_num_clauses
</a></h4>