Skip to main content

engage/generated/system/reflection/
memberinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-reflection-memberinfo-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/reflection/memberinfo/MemberInfo.md"))]
11    #[::unity::class(namespace = "System.Reflection", name = "MemberInfo")]
12    #[parent(crate::system::object::Object)]
13    pub struct MemberInfo {}
14}
15
16#[cfg(feature = "system-reflection-memberinfo-types")]
17pub use __types::*;
18
19#[cfg(feature = "system-reflection-memberinfo")]
20impl MemberInfo {
21    #[doc = "`op_Equality(crate::system::reflection::memberinfo::MemberInfo, crate::system::reflection::memberinfo::MemberInfo)` overload"]
22    pub fn op_equality(
23        left: impl ::core::convert::Into<crate::system::reflection::memberinfo::MemberInfo>,
24        right: impl ::core::convert::Into<crate::system::reflection::memberinfo::MemberInfo>,
25    ) -> bool {
26        unsafe {
27            ::unity::il2cpp_call!((::unity::module_base()+0x336f6c0usize)as*mut u8,bool;
28(crate::system::reflection::memberinfo::MemberInfo)::core::convert::Into::into(left),(crate::system::reflection::memberinfo::MemberInfo)::core::convert::Into::into(right))
29        }
30    }
31
32    #[doc = "`op_Inequality(crate::system::reflection::memberinfo::MemberInfo, crate::system::reflection::memberinfo::MemberInfo)` overload"]
33    pub fn op_inequality(
34        left: impl ::core::convert::Into<crate::system::reflection::memberinfo::MemberInfo>,
35        right: impl ::core::convert::Into<crate::system::reflection::memberinfo::MemberInfo>,
36    ) -> bool {
37        unsafe {
38            ::unity::il2cpp_call!((::unity::module_base()+0x336fe10usize)as*mut u8,bool;
39(crate::system::reflection::memberinfo::MemberInfo)::core::convert::Into::into(left),(crate::system::reflection::memberinfo::MemberInfo)::core::convert::Into::into(right))
40        }
41    }
42}
43
44#[cfg(feature = "system-reflection-memberinfo")]
45pub trait IMemberInfoMethods: IMemberInfo {
46    #[doc = "`.ctor()` overload"]
47    fn ctor(self) -> () {
48        unsafe {
49            let __receiver = <MemberInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50            ::unity::il2cpp_call!((::unity::module_base()+0x336f5a0usize)as*mut u8,();
51(MemberInfo)__receiver)
52        }
53    }
54    #[doc = "`get_MemberType()` overload"]
55    fn get_member_type(self) -> crate::system::reflection::membertypes::MemberTypes {
56        unsafe {
57            let __receiver = <MemberInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58            {
59                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
60                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
61                    panic!(
62                        "unity: virtual slot {}
63 out of range (vtable len {}
64) on the runtime class behind {}
65 (method `{}
66`)",
67                        6usize,
68                        __vt.len(),
69                        <MemberInfo as ::unity::ClassIdentity>::NAME,
70                        "get_MemberType",
71                    )
72                });
73                let __inner: extern "C" fn(MemberInfo, ::unity::OptionalMethod) -> crate::system::reflection::membertypes::MemberTypes =
74                    ::core::mem::transmute(__vi.method_ptr);
75                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
76                __inner(__receiver, __mi)
77            }
78        }
79    }
80    #[doc = "`get_Name()` overload"]
81    fn get_name(self) -> ::unity::Il2CppString {
82        unsafe {
83            let __receiver = <MemberInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            {
85                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
86                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
87                    panic!(
88                        "unity: virtual slot {}
89 out of range (vtable len {}
90) on the runtime class behind {}
91 (method `{}
92`)",
93                        7usize,
94                        __vt.len(),
95                        <MemberInfo as ::unity::ClassIdentity>::NAME,
96                        "get_Name",
97                    )
98                });
99                let __inner: extern "C" fn(MemberInfo, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
100                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
101                __inner(__receiver, __mi)
102            }
103        }
104    }
105    #[doc = "`get_DeclaringType()` overload"]
106    fn get_declaring_type(self) -> ::unity::SystemType {
107        unsafe {
108            let __receiver = <MemberInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109            {
110                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
111                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
112                    panic!(
113                        "unity: virtual slot {}
114 out of range (vtable len {}
115) on the runtime class behind {}
116 (method `{}
117`)",
118                        8usize,
119                        __vt.len(),
120                        <MemberInfo as ::unity::ClassIdentity>::NAME,
121                        "get_DeclaringType",
122                    )
123                });
124                let __inner: extern "C" fn(MemberInfo, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__vi.method_ptr);
125                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
126                __inner(__receiver, __mi)
127            }
128        }
129    }
130    #[doc = "`get_ReflectedType()` overload"]
131    fn get_reflected_type(self) -> ::unity::SystemType {
132        unsafe {
133            let __receiver = <MemberInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            {
135                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
136                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
137                    panic!(
138                        "unity: virtual slot {}
139 out of range (vtable len {}
140) on the runtime class behind {}
141 (method `{}
142`)",
143                        9usize,
144                        __vt.len(),
145                        <MemberInfo as ::unity::ClassIdentity>::NAME,
146                        "get_ReflectedType",
147                    )
148                });
149                let __inner: extern "C" fn(MemberInfo, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__vi.method_ptr);
150                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
151                __inner(__receiver, __mi)
152            }
153        }
154    }
155    #[doc = "`GetCustomAttributes(bool)` overload"]
156    fn get_custom_attributes(self, inherit: impl ::core::convert::Into<bool>) -> ::unity::Array<crate::system::object::Object> {
157        unsafe {
158            let __receiver = <MemberInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159            {
160                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
161                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
162                    panic!(
163                        "unity: virtual slot {}
164 out of range (vtable len {}
165) on the runtime class behind {}
166 (method `{}
167`)",
168                        10usize,
169                        __vt.len(),
170                        <MemberInfo as ::unity::ClassIdentity>::NAME,
171                        "GetCustomAttributes",
172                    )
173                });
174                let __inner: extern "C" fn(MemberInfo, bool, ::unity::OptionalMethod) -> ::unity::Array<crate::system::object::Object> =
175                    ::core::mem::transmute(__vi.method_ptr);
176                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
177                __inner(__receiver, ::core::convert::Into::into(inherit), __mi)
178            }
179        }
180    }
181    #[doc = "`GetCustomAttributes(::unity::SystemType, bool)` overload"]
182    fn get_custom_attributes_2(
183        self,
184        attribute_type: impl ::core::convert::Into<::unity::SystemType>,
185        inherit: impl ::core::convert::Into<bool>,
186    ) -> ::unity::Array<crate::system::object::Object> {
187        unsafe {
188            let __receiver = <MemberInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189            {
190                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
191                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
192                    panic!(
193                        "unity: virtual slot {}
194 out of range (vtable len {}
195) on the runtime class behind {}
196 (method `{}
197`)",
198                        11usize,
199                        __vt.len(),
200                        <MemberInfo as ::unity::ClassIdentity>::NAME,
201                        "GetCustomAttributes",
202                    )
203                });
204                let __inner: extern "C" fn(
205                    MemberInfo,
206                    ::unity::SystemType,
207                    bool,
208                    ::unity::OptionalMethod,
209                ) -> ::unity::Array<crate::system::object::Object> = ::core::mem::transmute(__vi.method_ptr);
210                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
211                __inner(
212                    __receiver,
213                    ::core::convert::Into::into(attribute_type),
214                    ::core::convert::Into::into(inherit),
215                    __mi,
216                )
217            }
218        }
219    }
220    #[doc = "`IsDefined(::unity::SystemType, bool)` overload"]
221    fn is_defined(self, attribute_type: impl ::core::convert::Into<::unity::SystemType>, inherit: impl ::core::convert::Into<bool>) -> bool {
222        unsafe {
223            let __receiver = <MemberInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224            {
225                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
226                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
227                    panic!(
228                        "unity: virtual slot {}
229 out of range (vtable len {}
230) on the runtime class behind {}
231 (method `{}
232`)",
233                        12usize,
234                        __vt.len(),
235                        <MemberInfo as ::unity::ClassIdentity>::NAME,
236                        "IsDefined",
237                    )
238                });
239                let __inner: extern "C" fn(MemberInfo, ::unity::SystemType, bool, ::unity::OptionalMethod) -> bool =
240                    ::core::mem::transmute(__vi.method_ptr);
241                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
242                __inner(
243                    __receiver,
244                    ::core::convert::Into::into(attribute_type),
245                    ::core::convert::Into::into(inherit),
246                    __mi,
247                )
248            }
249        }
250    }
251    #[doc = "`GetCustomAttributesData()` overload"]
252    fn get_custom_attributes_data(
253        self,
254    ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::system::reflection::customattributedata::CustomAttributeData>
255    {
256        unsafe {
257            let __receiver = <MemberInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258            {
259                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
260                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
261                    panic!(
262                        "unity: virtual slot {}
263 out of range (vtable len {}
264) on the runtime class behind {}
265 (method `{}
266`)",
267                        13usize,
268                        __vt.len(),
269                        <MemberInfo as ::unity::ClassIdentity>::NAME,
270                        "GetCustomAttributesData",
271                    )
272                });
273                let __inner: extern "C" fn(
274                    MemberInfo,
275                    ::unity::OptionalMethod,
276                ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
277                    crate::system::reflection::customattributedata::CustomAttributeData,
278                > = ::core::mem::transmute(__vi.method_ptr);
279                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
280                __inner(__receiver, __mi)
281            }
282        }
283    }
284    #[doc = "`get_MetadataToken()` overload"]
285    fn get_metadata_token(self) -> i32 {
286        unsafe {
287            let __receiver = <MemberInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
288            {
289                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
290                let __vi = *__vt.get(14usize).unwrap_or_else(|| {
291                    panic!(
292                        "unity: virtual slot {}
293 out of range (vtable len {}
294) on the runtime class behind {}
295 (method `{}
296`)",
297                        14usize,
298                        __vt.len(),
299                        <MemberInfo as ::unity::ClassIdentity>::NAME,
300                        "get_MetadataToken",
301                    )
302                });
303                let __inner: extern "C" fn(MemberInfo, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
304                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
305                __inner(__receiver, __mi)
306            }
307        }
308    }
309    #[doc = "`get_Module()` overload"]
310    fn get_module(self) -> crate::system::reflection::module::Module {
311        unsafe {
312            let __receiver = <MemberInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
313            {
314                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
315                let __vi = *__vt.get(15usize).unwrap_or_else(|| {
316                    panic!(
317                        "unity: virtual slot {}
318 out of range (vtable len {}
319) on the runtime class behind {}
320 (method `{}
321`)",
322                        15usize,
323                        __vt.len(),
324                        <MemberInfo as ::unity::ClassIdentity>::NAME,
325                        "get_Module",
326                    )
327                });
328                let __inner: extern "C" fn(MemberInfo, ::unity::OptionalMethod) -> crate::system::reflection::module::Module =
329                    ::core::mem::transmute(__vi.method_ptr);
330                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
331                __inner(__receiver, __mi)
332            }
333        }
334    }
335    #[doc = "`Equals(crate::system::object::Object)` overload"]
336    fn equals(self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
337        unsafe {
338            let __receiver = <MemberInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
339            {
340                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
341                let __vi = *__vt.get(0usize).unwrap_or_else(|| {
342                    panic!(
343                        "unity: virtual slot {}
344 out of range (vtable len {}
345) on the runtime class behind {}
346 (method `{}
347`)",
348                        0usize,
349                        __vt.len(),
350                        <MemberInfo as ::unity::ClassIdentity>::NAME,
351                        "Equals",
352                    )
353                });
354                let __inner: extern "C" fn(MemberInfo, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
355                    ::core::mem::transmute(__vi.method_ptr);
356                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
357                __inner(__receiver, ::core::convert::Into::into(obj), __mi)
358            }
359        }
360    }
361    #[doc = "`GetHashCode()` overload"]
362    fn get_hash_code(self) -> i32 {
363        unsafe {
364            let __receiver = <MemberInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
365            {
366                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
367                let __vi = *__vt.get(2usize).unwrap_or_else(|| {
368                    panic!(
369                        "unity: virtual slot {}
370 out of range (vtable len {}
371) on the runtime class behind {}
372 (method `{}
373`)",
374                        2usize,
375                        __vt.len(),
376                        <MemberInfo as ::unity::ClassIdentity>::NAME,
377                        "GetHashCode",
378                    )
379                });
380                let __inner: extern "C" fn(MemberInfo, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
381                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
382                __inner(__receiver, __mi)
383            }
384        }
385    }
386}
387
388#[cfg(feature = "system-reflection-memberinfo")]
389impl<__T: IMemberInfo> IMemberInfoMethods for __T {}
390
391#[cfg(feature = "system-reflection-memberinfo")]
392impl MemberInfo {
393    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
394        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
395    }
396
397    pub fn get_member_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
398        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
399    }
400
401    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
402        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
403    }
404
405    pub fn get_declaring_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
406        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
407    }
408
409    pub fn get_reflected_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
410        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
411    }
412
413    pub fn get_custom_attributes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
414        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
415    }
416
417    pub fn get_custom_attributes_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
418        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
419    }
420
421    pub fn is_defined_method_info() -> &'static ::unity::il2cpp::MethodInfo {
422        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
423    }
424
425    pub fn get_custom_attributes_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
426        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
427    }
428
429    pub fn get_metadata_token_method_info() -> &'static ::unity::il2cpp::MethodInfo {
430        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
431    }
432
433    pub fn get_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
434        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
435    }
436
437    pub fn op_equality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
438        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
439    }
440
441    pub fn op_inequality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
442        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
443    }
444
445    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
446        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
447    }
448
449    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
450        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
451    }
452}
453
454#[cfg(feature = "system-reflection-memberinfo")]
455impl MemberInfo {
456    #[doc = "Direct (non-virtual) call to `MemberInfo`'s own `get_MemberType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
457    pub unsafe fn get_member_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::reflection::membertypes::MemberTypes {
458        let __mi = Self::get_member_type_method_info();
459        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::reflection::membertypes::MemberTypes =
460            ::core::mem::transmute(__mi.method_ptr);
461        __inner(this.into(), ::core::option::Option::None)
462    }
463
464    #[doc = "Direct (non-virtual) call to `MemberInfo`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
465    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
466        let __mi = Self::get_name_method_info();
467        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
468        __inner(this.into(), ::core::option::Option::None)
469    }
470
471    #[doc = "Direct (non-virtual) call to `MemberInfo`'s own `get_DeclaringType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
472    pub unsafe fn get_declaring_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
473        let __mi = Self::get_declaring_type_method_info();
474        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
475        __inner(this.into(), ::core::option::Option::None)
476    }
477
478    #[doc = "Direct (non-virtual) call to `MemberInfo`'s own `get_ReflectedType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
479    pub unsafe fn get_reflected_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
480        let __mi = Self::get_reflected_type_method_info();
481        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
482        __inner(this.into(), ::core::option::Option::None)
483    }
484
485    #[doc = "Direct (non-virtual) call to `MemberInfo`'s own `GetCustomAttributes`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
486    pub unsafe fn get_custom_attributes(
487        this: impl ::core::convert::Into<::unity::IlInstance>,
488        inherit: bool,
489    ) -> ::unity::Array<crate::system::object::Object> {
490        let __mi = Self::get_custom_attributes_method_info();
491        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> ::unity::Array<crate::system::object::Object> =
492            ::core::mem::transmute(__mi.method_ptr);
493        __inner(this.into(), inherit, ::core::option::Option::None)
494    }
495
496    #[doc = "Direct (non-virtual) call to `MemberInfo`'s own `GetCustomAttributes`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
497    pub unsafe fn get_custom_attributes_2(
498        this: impl ::core::convert::Into<::unity::IlInstance>,
499        attribute_type: ::unity::SystemType,
500        inherit: bool,
501    ) -> ::unity::Array<crate::system::object::Object> {
502        let __mi = Self::get_custom_attributes_2_method_info();
503        let __inner: extern "C" fn(
504            ::unity::IlInstance,
505            ::unity::SystemType,
506            bool,
507            ::unity::OptionalMethod,
508        ) -> ::unity::Array<crate::system::object::Object> = ::core::mem::transmute(__mi.method_ptr);
509        __inner(this.into(), attribute_type, inherit, ::core::option::Option::None)
510    }
511
512    #[doc = "Direct (non-virtual) call to `MemberInfo`'s own `IsDefined`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
513    pub unsafe fn is_defined(this: impl ::core::convert::Into<::unity::IlInstance>, attribute_type: ::unity::SystemType, inherit: bool) -> bool {
514        let __mi = Self::is_defined_method_info();
515        let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, bool, ::unity::OptionalMethod) -> bool =
516            ::core::mem::transmute(__mi.method_ptr);
517        __inner(this.into(), attribute_type, inherit, ::core::option::Option::None)
518    }
519
520    #[doc = "Direct (non-virtual) call to `MemberInfo`'s own `GetCustomAttributesData`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
521    pub unsafe fn get_custom_attributes_data(
522        this: impl ::core::convert::Into<::unity::IlInstance>,
523    ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::system::reflection::customattributedata::CustomAttributeData>
524    {
525        let __mi = Self::get_custom_attributes_data_method_info();
526        let __inner: extern "C" fn(
527            ::unity::IlInstance,
528            ::unity::OptionalMethod,
529        ) -> crate::system::collections::generic::ilist_1_interface::IList_1_Interface<
530            crate::system::reflection::customattributedata::CustomAttributeData,
531        > = ::core::mem::transmute(__mi.method_ptr);
532        __inner(this.into(), ::core::option::Option::None)
533    }
534
535    #[doc = "Direct (non-virtual) call to `MemberInfo`'s own `get_MetadataToken`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
536    pub unsafe fn get_metadata_token(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
537        let __mi = Self::get_metadata_token_method_info();
538        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
539        __inner(this.into(), ::core::option::Option::None)
540    }
541
542    #[doc = "Direct (non-virtual) call to `MemberInfo`'s own `get_Module`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
543    pub unsafe fn get_module(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::reflection::module::Module {
544        let __mi = Self::get_module_method_info();
545        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::reflection::module::Module =
546            ::core::mem::transmute(__mi.method_ptr);
547        __inner(this.into(), ::core::option::Option::None)
548    }
549
550    #[doc = "Direct (non-virtual) call to `MemberInfo`'s own `Equals`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
551    pub unsafe fn equals(this: impl ::core::convert::Into<::unity::IlInstance>, obj: crate::system::object::Object) -> bool {
552        let __mi = Self::equals_method_info();
553        let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
554            ::core::mem::transmute(__mi.method_ptr);
555        __inner(this.into(), obj, ::core::option::Option::None)
556    }
557
558    #[doc = "Direct (non-virtual) call to `MemberInfo`'s own `GetHashCode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
559    pub unsafe fn get_hash_code(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
560        let __mi = Self::get_hash_code_method_info();
561        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
562        __inner(this.into(), ::core::option::Option::None)
563    }
564}
565
566#[cfg(feature = "system-reflection-memberinfo")]
567impl MemberInfo {
568    #[doc = "`.ctor()` — no args"]
569    pub fn new() -> Self {
570        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
571            panic!(
572                "{}
573::{}
574 failed to instantiate",
575                ::core::stringify!(MemberInfo),
576                ::core::stringify!(new),
577            )
578        });
579        <Self as IMemberInfoMethods>::ctor(this);
580        this
581    }
582}
583
584#[cfg(feature = "system-reflection-memberinfo")]
585#[doc(hidden)]
586pub mod prelude {
587    pub use super::{IMemberInfo, IMemberInfoMethods, MemberInfo};
588    pub use crate::system::object::IObject;
589    #[cfg(feature = "system-object")]
590    pub use crate::system::object::IObjectMethods;
591}