Skip to main content

engage/generated/system/reflection/
customattributenamedargument.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-reflection-customattributenamedargument-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/reflection/customattributenamedargument/CustomAttributeNamedArgument.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct CustomAttributeNamedArgument {
17        pub typed_argument: crate::system::reflection::customattributetypedargument::CustomAttributeTypedArgument,
18        pub member_info: crate::system::reflection::memberinfo::MemberInfo,
19    }
20    impl ::unity::ClassIdentity for CustomAttributeNamedArgument {
21        const NAME: &'static str = "CustomAttributeNamedArgument";
22        const NAMESPACE: &'static str = "System.Reflection";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for CustomAttributeNamedArgument {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34}
35
36#[cfg(feature = "system-reflection-customattributenamedargument-types")]
37pub use __types::*;
38
39#[cfg(feature = "system-reflection-customattributenamedargument")]
40impl CustomAttributeNamedArgument {
41    #[doc = "`.ctor(crate::system::reflection::memberinfo::MemberInfo, crate::system::object::Object)` overload"]
42    pub fn ctor(
43        &mut self,
44        member_info: impl ::core::convert::Into<crate::system::reflection::memberinfo::MemberInfo>,
45        value: impl ::core::convert::Into<crate::system::object::Object>,
46    ) -> () {
47        unsafe {
48            ::unity::il2cpp_call!((::unity::module_base()+0x3716500usize)as*mut u8,();
49(*mut CustomAttributeNamedArgument)self as*mut CustomAttributeNamedArgument,(crate::system::reflection::memberinfo::MemberInfo)::core::convert::Into::into(member_info),(crate::system::object::Object)::core::convert::Into::into(value))
50        }
51    }
52
53    #[doc = "`ToString()` overload"]
54    pub fn to_string(&mut self) -> ::unity::Il2CppString {
55        unsafe {
56            ::unity::il2cpp_call!((::unity::module_base()+0x3715780usize)as*mut u8, ::unity::Il2CppString;
57(*mut CustomAttributeNamedArgument)self as*mut CustomAttributeNamedArgument)
58        }
59    }
60
61    #[doc = "`Equals(crate::system::object::Object)` overload"]
62    pub fn equals(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x3715f50usize)as*mut u8,bool;
65(*mut CustomAttributeNamedArgument)self as*mut CustomAttributeNamedArgument,(crate::system::object::Object)::core::convert::Into::into(obj))
66        }
67    }
68
69    #[doc = "`GetHashCode()` overload"]
70    pub fn get_hash_code(&mut self) -> i32 {
71        unsafe {
72            ::unity::il2cpp_call!((::unity::module_base()+0x37163d0usize)as*mut u8,i32;
73(*mut CustomAttributeNamedArgument)self as*mut CustomAttributeNamedArgument)
74        }
75    }
76}
77
78#[cfg(feature = "system-reflection-customattributenamedargument")]
79impl CustomAttributeNamedArgument {
80    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
82    }
83
84    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
86    }
87
88    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
89        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
90    }
91
92    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
94    }
95}
96
97#[cfg(feature = "system-reflection-customattributenamedargument")]
98#[doc(hidden)]
99pub mod prelude {
100    pub use super::CustomAttributeNamedArgument;
101    #[cfg(feature = "system-object")]
102    pub use crate::system::object::IObjectMethods;
103    #[cfg(feature = "system-valuetype")]
104    pub use crate::system::valuetype::IValueTypeMethods;
105    pub use crate::system::{object::IObject, valuetype::IValueType};
106}