Skip to main content

engage/generated/system/collections/specialized/
casesensitivestringdictionary.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-collections-specialized-casesensitivestringdictionary-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        collections::specialized::stringdictionary::{IStringDictionary, StringDictionary},
10        object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/specialized/casesensitivestringdictionary/CaseSensitiveStringDictionary.md"))]
14    #[::unity::class(namespace = "System.Collections.Specialized", name = "CaseSensitiveStringDictionary")]
15    #[parent(crate::system::collections::specialized::stringdictionary::StringDictionary)]
16    pub struct CaseSensitiveStringDictionary {}
17}
18
19#[cfg(feature = "system-collections-specialized-casesensitivestringdictionary-types")]
20pub use __types::*;
21
22#[cfg(feature = "system-collections-specialized-casesensitivestringdictionary")]
23pub trait ICaseSensitiveStringDictionaryMethods: ICaseSensitiveStringDictionary {
24    #[doc = "`.ctor()` overload"]
25    fn ctor(self) -> () {
26        unsafe {
27            let __receiver =
28                <CaseSensitiveStringDictionary as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29            ::unity::il2cpp_call!((::unity::module_base()+0x354c680usize)as*mut u8,();
30(CaseSensitiveStringDictionary)__receiver)
31        }
32    }
33    #[doc = "`Add(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
34    fn add(self, key: impl ::core::convert::Into<::unity::Il2CppString>, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
35        unsafe {
36            let __receiver =
37                <CaseSensitiveStringDictionary as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            {
39                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
40                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
41                    panic!(
42                        "unity: virtual slot {}
43 out of range (vtable len {}
44) on the runtime class behind {}
45 (method `{}
46`)",
47                        5usize,
48                        __vt.len(),
49                        <CaseSensitiveStringDictionary as ::unity::ClassIdentity>::NAME,
50                        "Add",
51                    )
52                });
53                let __inner: extern "C" fn(
54                    CaseSensitiveStringDictionary,
55                    ::unity::Il2CppString,
56                    ::unity::Il2CppString,
57                    ::unity::OptionalMethod,
58                ) -> () = ::core::mem::transmute(__vi.method_ptr);
59                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
60                __inner(__receiver, ::core::convert::Into::into(key), ::core::convert::Into::into(value), __mi)
61            }
62        }
63    }
64}
65
66#[cfg(feature = "system-collections-specialized-casesensitivestringdictionary")]
67impl<__T: ICaseSensitiveStringDictionary> ICaseSensitiveStringDictionaryMethods for __T {}
68
69#[cfg(feature = "system-collections-specialized-casesensitivestringdictionary")]
70impl CaseSensitiveStringDictionary {
71    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
73    }
74
75    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
77    }
78}
79
80#[cfg(feature = "system-collections-specialized-casesensitivestringdictionary")]
81impl CaseSensitiveStringDictionary {
82    #[doc = "Direct (non-virtual) call to `CaseSensitiveStringDictionary`'s own `Add`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
83    pub unsafe fn add(this: impl ::core::convert::Into<::unity::IlInstance>, key: ::unity::Il2CppString, value: ::unity::Il2CppString) -> () {
84        let __mi = Self::add_method_info();
85        let __inner: extern "C" fn(::unity::IlInstance, ::unity::Il2CppString, ::unity::Il2CppString, ::unity::OptionalMethod) -> () =
86            ::core::mem::transmute(__mi.method_ptr);
87        __inner(this.into(), key, value, ::core::option::Option::None)
88    }
89}
90
91#[cfg(feature = "system-collections-specialized-casesensitivestringdictionary")]
92impl CaseSensitiveStringDictionary {
93    #[doc = "`.ctor()` — no args"]
94    pub fn new() -> Self {
95        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
96            panic!(
97                "{}
98::{}
99 failed to instantiate",
100                ::core::stringify!(CaseSensitiveStringDictionary),
101                ::core::stringify!(new),
102            )
103        });
104        <Self as ICaseSensitiveStringDictionaryMethods>::ctor(this);
105        this
106    }
107}
108
109#[cfg(feature = "system-collections-specialized-casesensitivestringdictionary")]
110#[doc(hidden)]
111pub mod prelude {
112    pub use super::{CaseSensitiveStringDictionary, ICaseSensitiveStringDictionary, ICaseSensitiveStringDictionaryMethods};
113    #[cfg(feature = "system-collections-specialized-stringdictionary")]
114    pub use crate::system::collections::specialized::stringdictionary::IStringDictionaryMethods;
115    #[cfg(feature = "system-object")]
116    pub use crate::system::object::IObjectMethods;
117    pub use crate::system::{collections::specialized::stringdictionary::IStringDictionary, object::IObject};
118}