Skip to main content

engage/generated/system/reflection/
monocmethod.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-reflection-monocmethod-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        reflection::{
11            constructorinfo::{ConstructorInfo, IConstructorInfo},
12            memberinfo::{IMemberInfo, MemberInfo},
13            methodbase::{IMethodBase, MethodBase},
14            runtimeconstructorinfo::{IRuntimeConstructorInfo, RuntimeConstructorInfo},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/reflection/monocmethod/MonoCMethod.md"))]
19    #[::unity::class(namespace = "System.Reflection", name = "MonoCMethod")]
20    #[parent(crate::system::reflection::runtimeconstructorinfo::RuntimeConstructorInfo)]
21    pub struct MonoCMethod {
22        #[offset(16)]
23        #[rename(name = "mhandle")]
24        pub mhandle: ::unity::IntPtr,
25        #[offset(24)]
26        #[rename(name = "name")]
27        pub name: ::unity::Il2CppString,
28        #[offset(32)]
29        #[rename(name = "reftype")]
30        pub reftype: ::unity::SystemType,
31    }
32}
33
34#[cfg(feature = "system-reflection-monocmethod-types")]
35pub use __types::*;
36
37#[cfg(feature = "system-reflection-monocmethod")]
38impl MonoCMethod {
39    #[doc = "`get_core_clr_security_level()` overload"]
40    pub fn get_core_clr_security_level() -> i32 {
41        unsafe {
42            ::unity::il2cpp_call!((::unity::module_base()+0x337d300usize)as*mut u8,i32;
43            )
44        }
45    }
46}
47
48#[cfg(feature = "system-reflection-monocmethod")]
49pub trait IMonoCMethodMethods: IMonoCMethod {
50    #[doc = "`GetMethodImplementationFlags()` overload"]
51    fn get_method_implementation_flags(self) -> crate::system::reflection::methodimplattributes::MethodImplAttributes {
52        unsafe {
53            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            {
55                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
56                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
57                    panic!(
58                        "unity: virtual slot {}
59 out of range (vtable len {}
60) on the runtime class behind {}
61 (method `{}
62`)",
63                        18usize,
64                        __vt.len(),
65                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
66                        "GetMethodImplementationFlags",
67                    )
68                });
69                let __inner: extern "C" fn(
70                    MonoCMethod,
71                    ::unity::OptionalMethod,
72                ) -> crate::system::reflection::methodimplattributes::MethodImplAttributes = ::core::mem::transmute(__vi.method_ptr);
73                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
74                __inner(__receiver, __mi)
75            }
76        }
77    }
78    #[doc = "`GetParameters()` overload"]
79    fn get_parameters(self) -> ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> {
80        unsafe {
81            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82            {
83                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
84                let __vi = *__vt.get(17usize).unwrap_or_else(|| {
85                    panic!(
86                        "unity: virtual slot {}
87 out of range (vtable len {}
88) on the runtime class behind {}
89 (method `{}
90`)",
91                        17usize,
92                        __vt.len(),
93                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
94                        "GetParameters",
95                    )
96                });
97                let __inner: extern "C" fn(
98                    MonoCMethod,
99                    ::unity::OptionalMethod,
100                ) -> ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> = ::core::mem::transmute(__vi.method_ptr);
101                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
102                __inner(__receiver, __mi)
103            }
104        }
105    }
106    #[doc = "`GetParametersInternal()` overload"]
107    fn get_parameters_internal(self) -> ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> {
108        unsafe {
109            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110            {
111                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
112                let __vi = *__vt.get(42usize).unwrap_or_else(|| {
113                    panic!(
114                        "unity: virtual slot {}
115 out of range (vtable len {}
116) on the runtime class behind {}
117 (method `{}
118`)",
119                        42usize,
120                        __vt.len(),
121                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
122                        "GetParametersInternal",
123                    )
124                });
125                let __inner: extern "C" fn(
126                    MonoCMethod,
127                    ::unity::OptionalMethod,
128                ) -> ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> = ::core::mem::transmute(__vi.method_ptr);
129                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
130                __inner(__receiver, __mi)
131            }
132        }
133    }
134    #[doc = "`GetParametersCount()` overload"]
135    fn get_parameters_count(self) -> i32 {
136        unsafe {
137            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138            {
139                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
140                let __vi = *__vt.get(43usize).unwrap_or_else(|| {
141                    panic!(
142                        "unity: virtual slot {}
143 out of range (vtable len {}
144) on the runtime class behind {}
145 (method `{}
146`)",
147                        43usize,
148                        __vt.len(),
149                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
150                        "GetParametersCount",
151                    )
152                });
153                let __inner: extern "C" fn(MonoCMethod, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
154                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
155                __inner(__receiver, __mi)
156            }
157        }
158    }
159    #[doc = "`InternalInvoke(crate::system::object::Object, ::unity::Array<crate::system::object::Object>)` overload"]
160    fn internal_invoke(
161        self,
162        obj: impl ::core::convert::Into<crate::system::object::Object>,
163        parameters: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
164    ) -> crate::system::object::Object {
165        unsafe {
166            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167            ::unity::il2cpp_call!((::unity::module_base()+0x337bd80usize)as*mut u8,crate::system::object::Object;
168(MonoCMethod)__receiver,(crate::system::object::Object)::core::convert::Into::into(obj),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(parameters))
169        }
170    }
171    #[doc = "`get_Attributes()` overload"]
172    fn get_attributes(self) -> crate::system::reflection::methodattributes::MethodAttributes {
173        unsafe {
174            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175            {
176                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
177                let __vi = *__vt.get(20usize).unwrap_or_else(|| {
178                    panic!(
179                        "unity: virtual slot {}
180 out of range (vtable len {}
181) on the runtime class behind {}
182 (method `{}
183`)",
184                        20usize,
185                        __vt.len(),
186                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
187                        "get_Attributes",
188                    )
189                });
190                let __inner: extern "C" fn(MonoCMethod, ::unity::OptionalMethod) -> crate::system::reflection::methodattributes::MethodAttributes =
191                    ::core::mem::transmute(__vi.method_ptr);
192                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
193                __inner(__receiver, __mi)
194            }
195        }
196    }
197    #[doc = "`get_CallingConvention()` overload"]
198    fn get_calling_convention(self) -> crate::system::reflection::callingconventions::CallingConventions {
199        unsafe {
200            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
201            {
202                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
203                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
204                    panic!(
205                        "unity: virtual slot {}
206 out of range (vtable len {}
207) on the runtime class behind {}
208 (method `{}
209`)",
210                        22usize,
211                        __vt.len(),
212                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
213                        "get_CallingConvention",
214                    )
215                });
216                let __inner: extern "C" fn(
217                    MonoCMethod,
218                    ::unity::OptionalMethod,
219                ) -> crate::system::reflection::callingconventions::CallingConventions = ::core::mem::transmute(__vi.method_ptr);
220                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
221                __inner(__receiver, __mi)
222            }
223        }
224    }
225    #[doc = "`get_ContainsGenericParameters()` overload"]
226    fn get_contains_generic_parameters(self) -> bool {
227        unsafe {
228            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229            {
230                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
231                let __vi = *__vt.get(25usize).unwrap_or_else(|| {
232                    panic!(
233                        "unity: virtual slot {}
234 out of range (vtable len {}
235) on the runtime class behind {}
236 (method `{}
237`)",
238                        25usize,
239                        __vt.len(),
240                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
241                        "get_ContainsGenericParameters",
242                    )
243                });
244                let __inner: extern "C" fn(MonoCMethod, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
245                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
246                __inner(__receiver, __mi)
247            }
248        }
249    }
250    #[doc = "`get_ReflectedType()` overload"]
251    fn get_reflected_type(self) -> ::unity::SystemType {
252        unsafe {
253            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
254            {
255                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
256                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
257                    panic!(
258                        "unity: virtual slot {}
259 out of range (vtable len {}
260) on the runtime class behind {}
261 (method `{}
262`)",
263                        9usize,
264                        __vt.len(),
265                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
266                        "get_ReflectedType",
267                    )
268                });
269                let __inner: extern "C" fn(MonoCMethod, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__vi.method_ptr);
270                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
271                __inner(__receiver, __mi)
272            }
273        }
274    }
275    #[doc = "`get_DeclaringType()` overload"]
276    fn get_declaring_type(self) -> ::unity::SystemType {
277        unsafe {
278            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
279            {
280                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
281                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
282                    panic!(
283                        "unity: virtual slot {}
284 out of range (vtable len {}
285) on the runtime class behind {}
286 (method `{}
287`)",
288                        8usize,
289                        __vt.len(),
290                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
291                        "get_DeclaringType",
292                    )
293                });
294                let __inner: extern "C" fn(MonoCMethod, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__vi.method_ptr);
295                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
296                __inner(__receiver, __mi)
297            }
298        }
299    }
300    #[doc = "`get_Name()` overload"]
301    fn get_name(self) -> ::unity::Il2CppString {
302        unsafe {
303            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
304            {
305                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
306                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
307                    panic!(
308                        "unity: virtual slot {}
309 out of range (vtable len {}
310) on the runtime class behind {}
311 (method `{}
312`)",
313                        7usize,
314                        __vt.len(),
315                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
316                        "get_Name",
317                    )
318                });
319                let __inner: extern "C" fn(MonoCMethod, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
320                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
321                __inner(__receiver, __mi)
322            }
323        }
324    }
325    #[doc = "`IsDefined(::unity::SystemType, bool)` overload"]
326    fn is_defined(self, attribute_type: impl ::core::convert::Into<::unity::SystemType>, inherit: impl ::core::convert::Into<bool>) -> bool {
327        unsafe {
328            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
329            {
330                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
331                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
332                    panic!(
333                        "unity: virtual slot {}
334 out of range (vtable len {}
335) on the runtime class behind {}
336 (method `{}
337`)",
338                        12usize,
339                        __vt.len(),
340                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
341                        "IsDefined",
342                    )
343                });
344                let __inner: extern "C" fn(MonoCMethod, ::unity::SystemType, bool, ::unity::OptionalMethod) -> bool =
345                    ::core::mem::transmute(__vi.method_ptr);
346                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
347                __inner(
348                    __receiver,
349                    ::core::convert::Into::into(attribute_type),
350                    ::core::convert::Into::into(inherit),
351                    __mi,
352                )
353            }
354        }
355    }
356    #[doc = "`GetCustomAttributes(bool)` overload"]
357    fn get_custom_attributes(self, inherit: impl ::core::convert::Into<bool>) -> ::unity::Array<crate::system::object::Object> {
358        unsafe {
359            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
360            {
361                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
362                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
363                    panic!(
364                        "unity: virtual slot {}
365 out of range (vtable len {}
366) on the runtime class behind {}
367 (method `{}
368`)",
369                        10usize,
370                        __vt.len(),
371                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
372                        "GetCustomAttributes",
373                    )
374                });
375                let __inner: extern "C" fn(MonoCMethod, bool, ::unity::OptionalMethod) -> ::unity::Array<crate::system::object::Object> =
376                    ::core::mem::transmute(__vi.method_ptr);
377                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
378                __inner(__receiver, ::core::convert::Into::into(inherit), __mi)
379            }
380        }
381    }
382    #[doc = "`GetCustomAttributes(::unity::SystemType, bool)` overload"]
383    fn get_custom_attributes_2(
384        self,
385        attribute_type: impl ::core::convert::Into<::unity::SystemType>,
386        inherit: impl ::core::convert::Into<bool>,
387    ) -> ::unity::Array<crate::system::object::Object> {
388        unsafe {
389            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
390            {
391                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
392                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
393                    panic!(
394                        "unity: virtual slot {}
395 out of range (vtable len {}
396) on the runtime class behind {}
397 (method `{}
398`)",
399                        11usize,
400                        __vt.len(),
401                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
402                        "GetCustomAttributes",
403                    )
404                });
405                let __inner: extern "C" fn(
406                    MonoCMethod,
407                    ::unity::SystemType,
408                    bool,
409                    ::unity::OptionalMethod,
410                ) -> ::unity::Array<crate::system::object::Object> = ::core::mem::transmute(__vi.method_ptr);
411                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
412                __inner(
413                    __receiver,
414                    ::core::convert::Into::into(attribute_type),
415                    ::core::convert::Into::into(inherit),
416                    __mi,
417                )
418            }
419        }
420    }
421    #[doc = "`ToString()` overload"]
422    fn to_string(self) -> ::unity::Il2CppString {
423        unsafe {
424            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
425            {
426                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
427                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
428                    panic!(
429                        "unity: virtual slot {}
430 out of range (vtable len {}
431) on the runtime class behind {}
432 (method `{}
433`)",
434                        3usize,
435                        __vt.len(),
436                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
437                        "ToString",
438                    )
439                });
440                let __inner: extern "C" fn(MonoCMethod, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
441                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
442                __inner(__receiver, __mi)
443            }
444        }
445    }
446    #[doc = "`GetCustomAttributesData()` overload"]
447    fn get_custom_attributes_data(
448        self,
449    ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::system::reflection::customattributedata::CustomAttributeData>
450    {
451        unsafe {
452            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
453            {
454                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
455                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
456                    panic!(
457                        "unity: virtual slot {}
458 out of range (vtable len {}
459) on the runtime class behind {}
460 (method `{}
461`)",
462                        13usize,
463                        __vt.len(),
464                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
465                        "GetCustomAttributesData",
466                    )
467                });
468                let __inner: extern "C" fn(
469                    MonoCMethod,
470                    ::unity::OptionalMethod,
471                ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
472                    crate::system::reflection::customattributedata::CustomAttributeData,
473                > = ::core::mem::transmute(__vi.method_ptr);
474                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
475                __inner(__receiver, __mi)
476            }
477        }
478    }
479    #[doc = "`get_IsSecurityCritical()` overload"]
480    fn get_is_security_critical(self) -> bool {
481        unsafe {
482            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
483            {
484                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
485                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
486                    panic!(
487                        "unity: virtual slot {}
488 out of range (vtable len {}
489) on the runtime class behind {}
490 (method `{}
491`)",
492                        27usize,
493                        __vt.len(),
494                        <MonoCMethod as ::unity::ClassIdentity>::NAME,
495                        "get_IsSecurityCritical",
496                    )
497                });
498                let __inner: extern "C" fn(MonoCMethod, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
499                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
500                __inner(__receiver, __mi)
501            }
502        }
503    }
504    #[doc = "`.ctor()` overload"]
505    fn ctor(self) -> () {
506        unsafe {
507            let __receiver = <MonoCMethod as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
508            ::unity::il2cpp_call!((::unity::module_base()+0x337d320usize)as*mut u8,();
509(MonoCMethod)__receiver)
510        }
511    }
512}
513
514#[cfg(feature = "system-reflection-monocmethod")]
515impl<__T: IMonoCMethod> IMonoCMethodMethods for __T {}
516
517#[cfg(feature = "system-reflection-monocmethod")]
518impl MonoCMethod {
519    pub fn get_method_implementation_flags_method_info() -> &'static ::unity::il2cpp::MethodInfo {
520        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
521    }
522
523    pub fn get_parameters_method_info() -> &'static ::unity::il2cpp::MethodInfo {
524        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
525    }
526
527    pub fn get_parameters_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
528        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
529    }
530
531    pub fn get_parameters_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
532        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
533    }
534
535    pub fn internal_invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
536        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
537    }
538
539    pub fn get_attributes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
540        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
541    }
542
543    pub fn get_calling_convention_method_info() -> &'static ::unity::il2cpp::MethodInfo {
544        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
545    }
546
547    pub fn get_contains_generic_parameters_method_info() -> &'static ::unity::il2cpp::MethodInfo {
548        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
549    }
550
551    pub fn get_reflected_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
552        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
553    }
554
555    pub fn get_declaring_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
556        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
557    }
558
559    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
560        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
561    }
562
563    pub fn is_defined_method_info() -> &'static ::unity::il2cpp::MethodInfo {
564        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
565    }
566
567    pub fn get_custom_attributes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
568        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
569    }
570
571    pub fn get_custom_attributes_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
572        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
573    }
574
575    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
576        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
577    }
578
579    pub fn get_custom_attributes_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
580        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
581    }
582
583    pub fn get_core_clr_security_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
584        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
585    }
586
587    pub fn get_is_security_critical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
588        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
589    }
590
591    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
592        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
593    }
594}
595
596#[cfg(feature = "system-reflection-monocmethod")]
597impl MonoCMethod {
598    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `GetMethodImplementationFlags`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
599    pub unsafe fn get_method_implementation_flags(
600        this: impl ::core::convert::Into<::unity::IlInstance>,
601    ) -> crate::system::reflection::methodimplattributes::MethodImplAttributes {
602        let __mi = Self::get_method_implementation_flags_method_info();
603        let __inner: extern "C" fn(
604            ::unity::IlInstance,
605            ::unity::OptionalMethod,
606        ) -> crate::system::reflection::methodimplattributes::MethodImplAttributes = ::core::mem::transmute(__mi.method_ptr);
607        __inner(this.into(), ::core::option::Option::None)
608    }
609
610    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `GetParameters`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
611    pub unsafe fn get_parameters(
612        this: impl ::core::convert::Into<::unity::IlInstance>,
613    ) -> ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> {
614        let __mi = Self::get_parameters_method_info();
615        let __inner: extern "C" fn(
616            ::unity::IlInstance,
617            ::unity::OptionalMethod,
618        ) -> ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> = ::core::mem::transmute(__mi.method_ptr);
619        __inner(this.into(), ::core::option::Option::None)
620    }
621
622    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `GetParametersInternal`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
623    pub unsafe fn get_parameters_internal(
624        this: impl ::core::convert::Into<::unity::IlInstance>,
625    ) -> ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> {
626        let __mi = Self::get_parameters_internal_method_info();
627        let __inner: extern "C" fn(
628            ::unity::IlInstance,
629            ::unity::OptionalMethod,
630        ) -> ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> = ::core::mem::transmute(__mi.method_ptr);
631        __inner(this.into(), ::core::option::Option::None)
632    }
633
634    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `GetParametersCount`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
635    pub unsafe fn get_parameters_count(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
636        let __mi = Self::get_parameters_count_method_info();
637        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
638        __inner(this.into(), ::core::option::Option::None)
639    }
640
641    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `get_Attributes`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
642    pub unsafe fn get_attributes(
643        this: impl ::core::convert::Into<::unity::IlInstance>,
644    ) -> crate::system::reflection::methodattributes::MethodAttributes {
645        let __mi = Self::get_attributes_method_info();
646        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::reflection::methodattributes::MethodAttributes =
647            ::core::mem::transmute(__mi.method_ptr);
648        __inner(this.into(), ::core::option::Option::None)
649    }
650
651    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `get_CallingConvention`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
652    pub unsafe fn get_calling_convention(
653        this: impl ::core::convert::Into<::unity::IlInstance>,
654    ) -> crate::system::reflection::callingconventions::CallingConventions {
655        let __mi = Self::get_calling_convention_method_info();
656        let __inner: extern "C" fn(
657            ::unity::IlInstance,
658            ::unity::OptionalMethod,
659        ) -> crate::system::reflection::callingconventions::CallingConventions = ::core::mem::transmute(__mi.method_ptr);
660        __inner(this.into(), ::core::option::Option::None)
661    }
662
663    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `get_ContainsGenericParameters`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
664    pub unsafe fn get_contains_generic_parameters(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
665        let __mi = Self::get_contains_generic_parameters_method_info();
666        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
667        __inner(this.into(), ::core::option::Option::None)
668    }
669
670    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `get_ReflectedType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
671    pub unsafe fn get_reflected_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
672        let __mi = Self::get_reflected_type_method_info();
673        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
674        __inner(this.into(), ::core::option::Option::None)
675    }
676
677    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `get_DeclaringType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
678    pub unsafe fn get_declaring_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
679        let __mi = Self::get_declaring_type_method_info();
680        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
681        __inner(this.into(), ::core::option::Option::None)
682    }
683
684    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
685    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
686        let __mi = Self::get_name_method_info();
687        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
688        __inner(this.into(), ::core::option::Option::None)
689    }
690
691    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `IsDefined`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
692    pub unsafe fn is_defined(this: impl ::core::convert::Into<::unity::IlInstance>, attribute_type: ::unity::SystemType, inherit: bool) -> bool {
693        let __mi = Self::is_defined_method_info();
694        let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, bool, ::unity::OptionalMethod) -> bool =
695            ::core::mem::transmute(__mi.method_ptr);
696        __inner(this.into(), attribute_type, inherit, ::core::option::Option::None)
697    }
698
699    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `GetCustomAttributes`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
700    pub unsafe fn get_custom_attributes(
701        this: impl ::core::convert::Into<::unity::IlInstance>,
702        inherit: bool,
703    ) -> ::unity::Array<crate::system::object::Object> {
704        let __mi = Self::get_custom_attributes_method_info();
705        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> ::unity::Array<crate::system::object::Object> =
706            ::core::mem::transmute(__mi.method_ptr);
707        __inner(this.into(), inherit, ::core::option::Option::None)
708    }
709
710    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `GetCustomAttributes`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
711    pub unsafe fn get_custom_attributes_2(
712        this: impl ::core::convert::Into<::unity::IlInstance>,
713        attribute_type: ::unity::SystemType,
714        inherit: bool,
715    ) -> ::unity::Array<crate::system::object::Object> {
716        let __mi = Self::get_custom_attributes_2_method_info();
717        let __inner: extern "C" fn(
718            ::unity::IlInstance,
719            ::unity::SystemType,
720            bool,
721            ::unity::OptionalMethod,
722        ) -> ::unity::Array<crate::system::object::Object> = ::core::mem::transmute(__mi.method_ptr);
723        __inner(this.into(), attribute_type, inherit, ::core::option::Option::None)
724    }
725
726    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
727    pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
728        let __mi = Self::to_string_method_info();
729        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
730        __inner(this.into(), ::core::option::Option::None)
731    }
732
733    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `GetCustomAttributesData`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
734    pub unsafe fn get_custom_attributes_data(
735        this: impl ::core::convert::Into<::unity::IlInstance>,
736    ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::system::reflection::customattributedata::CustomAttributeData>
737    {
738        let __mi = Self::get_custom_attributes_data_method_info();
739        let __inner: extern "C" fn(
740            ::unity::IlInstance,
741            ::unity::OptionalMethod,
742        ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
743            crate::system::reflection::customattributedata::CustomAttributeData,
744        > = ::core::mem::transmute(__mi.method_ptr);
745        __inner(this.into(), ::core::option::Option::None)
746    }
747
748    #[doc = "Direct (non-virtual) call to `MonoCMethod`'s own `get_IsSecurityCritical`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
749    pub unsafe fn get_is_security_critical(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
750        let __mi = Self::get_is_security_critical_method_info();
751        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
752        __inner(this.into(), ::core::option::Option::None)
753    }
754}
755
756#[cfg(feature = "system-reflection-monocmethod")]
757impl MonoCMethod {
758    #[doc = "`.ctor()` — no args"]
759    pub fn new() -> Self {
760        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
761            panic!(
762                "{}
763::{}
764 failed to instantiate",
765                ::core::stringify!(MonoCMethod),
766                ::core::stringify!(new),
767            )
768        });
769        <Self as IMonoCMethodMethods>::ctor(this);
770        this
771    }
772}
773
774#[cfg(feature = "system-reflection-monocmethod")]
775#[doc(hidden)]
776pub mod prelude {
777    pub use super::{IMonoCMethod, IMonoCMethodMethods, MonoCMethod};
778    #[cfg(feature = "system-object")]
779    pub use crate::system::object::IObjectMethods;
780    #[cfg(feature = "system-reflection-constructorinfo")]
781    pub use crate::system::reflection::constructorinfo::IConstructorInfoMethods;
782    #[cfg(feature = "system-reflection-memberinfo")]
783    pub use crate::system::reflection::memberinfo::IMemberInfoMethods;
784    #[cfg(feature = "system-reflection-methodbase")]
785    pub use crate::system::reflection::methodbase::IMethodBaseMethods;
786    #[cfg(feature = "system-reflection-runtimeconstructorinfo")]
787    pub use crate::system::reflection::runtimeconstructorinfo::IRuntimeConstructorInfoMethods;
788    pub use crate::system::{
789        object::IObject,
790        reflection::{
791            constructorinfo::IConstructorInfo, memberinfo::IMemberInfo, methodbase::IMethodBase, runtimeconstructorinfo::IRuntimeConstructorInfo,
792        },
793    };
794}