Skip to main content

engage/generated/system/collections/generic/
dictionary_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-collections-generic-dictionary_2-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/collections/generic/dictionary_2/Dictionary_2_Enumerator.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct Dictionary_2_Enumerator<T0, T1> {
17        pub _phantom: ::core::marker::PhantomData<(T0, T1)>,
18    }
19    impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ::unity::ClassIdentity for Dictionary_2_Enumerator<T0, T1> {
20        const NAME: &'static str = "Dictionary`2.Enumerator";
21        const NAMESPACE: &'static str = "System.Collections.Generic";
22
23        fn class() -> ::unity::Class {
24            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
25            *CACHE.get_or_init(|| {
26                ::unity::Class::lookup(Self::NAMESPACE, Self::NAME)
27                    .make_generic(&[<T0 as ::unity::ClassIdentity>::class(), <T1 as ::unity::ClassIdentity>::class()])
28                    .expect("generic instantiation")
29            })
30        }
31    }
32    impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ::unity::IlType for Dictionary_2_Enumerator<T0, T1> {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37
38    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/dictionary_2/Dictionary_2_ValueCollection_Enumerator.md"))]
39    #[repr(C)]
40    #[derive(::core::clone::Clone, ::core::marker::Copy)]
41    pub struct Dictionary_2_ValueCollection_Enumerator<T0, T1> {
42        pub _phantom: ::core::marker::PhantomData<(T0, T1)>,
43    }
44    impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ::unity::ClassIdentity for Dictionary_2_ValueCollection_Enumerator<T0, T1> {
45        const NAME: &'static str = "Dictionary`2.ValueCollection.Enumerator";
46        const NAMESPACE: &'static str = "System.Collections.Generic";
47
48        fn class() -> ::unity::Class {
49            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
50            *CACHE.get_or_init(|| {
51                ::unity::Class::lookup(Self::NAMESPACE, Self::NAME)
52                    .make_generic(&[<T0 as ::unity::ClassIdentity>::class(), <T1 as ::unity::ClassIdentity>::class()])
53                    .expect("generic instantiation")
54            })
55        }
56    }
57    impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ::unity::IlType for Dictionary_2_ValueCollection_Enumerator<T0, T1> {
58        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
59            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
60        }
61    }
62
63    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/dictionary_2/Dictionary_2_KeyCollection.md"))]
64    #[::unity::class(namespace = "System.Collections.Generic", name = "Dictionary`2.KeyCollection")]
65    #[parent(crate::system::object::Object)]
66    pub struct Dictionary_2_KeyCollection<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
67        #[rename(name = "dictionary")]
68        pub dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<T0, T1>,
69    }
70
71    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/dictionary_2/Dictionary_2.md"))]
72    #[::unity::class(namespace = "System.Collections.Generic", name = "Dictionary`2")]
73    #[parent(crate::system::object::Object)]
74    pub struct Dictionary_2<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
75        #[rename(name = "buckets")]
76        pub buckets: ::unity::Array<i32>,
77        #[rename(name = "entries")]
78        pub entries: ::unity::Array<crate::system::collections::generic::dictionary_2::Dictionary_2_Entry<T0, T1>>,
79        #[rename(name = "count")]
80        pub count: i32,
81        #[rename(name = "version")]
82        pub version: i32,
83        #[rename(name = "freeList")]
84        pub free_list: i32,
85        #[rename(name = "freeCount")]
86        pub free_count: i32,
87        #[rename(name = "comparer")]
88        pub comparer: crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>,
89        #[rename(name = "keys")]
90        pub keys: crate::system::collections::generic::dictionary_2::Dictionary_2_KeyCollection<T0, T1>,
91        #[rename(name = "values")]
92        pub values: crate::system::collections::generic::dictionary_2::Dictionary_2_ValueCollection<T0, T1>,
93        #[rename(name = "_syncRoot")]
94        pub sync_root: ::unity::IlInstance,
95        #[static_field]
96        #[rename(name = "VersionName")]
97        pub version_name: ::unity::Il2CppString,
98        #[static_field]
99        #[rename(name = "HashSizeName")]
100        pub hash_size_name: ::unity::Il2CppString,
101        #[static_field]
102        #[rename(name = "KeyValuePairsName")]
103        pub key_value_pairs_name: ::unity::Il2CppString,
104        #[static_field]
105        #[rename(name = "ComparerName")]
106        pub comparer_name: ::unity::Il2CppString,
107    }
108
109    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/dictionary_2/Dictionary_2_KeyCollection_Enumerator.md"))]
110    #[repr(C)]
111    #[derive(::core::clone::Clone, ::core::marker::Copy)]
112    pub struct Dictionary_2_KeyCollection_Enumerator<T0, T1> {
113        pub _phantom: ::core::marker::PhantomData<(T0, T1)>,
114    }
115    impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ::unity::ClassIdentity for Dictionary_2_KeyCollection_Enumerator<T0, T1> {
116        const NAME: &'static str = "Dictionary`2.KeyCollection.Enumerator";
117        const NAMESPACE: &'static str = "System.Collections.Generic";
118
119        fn class() -> ::unity::Class {
120            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
121            *CACHE.get_or_init(|| {
122                ::unity::Class::lookup(Self::NAMESPACE, Self::NAME)
123                    .make_generic(&[<T0 as ::unity::ClassIdentity>::class(), <T1 as ::unity::ClassIdentity>::class()])
124                    .expect("generic instantiation")
125            })
126        }
127    }
128    impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ::unity::IlType for Dictionary_2_KeyCollection_Enumerator<T0, T1> {
129        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
130            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
131        }
132    }
133
134    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/dictionary_2/Dictionary_2_ValueCollection.md"))]
135    #[::unity::class(namespace = "System.Collections.Generic", name = "Dictionary`2.ValueCollection")]
136    #[parent(crate::system::object::Object)]
137    pub struct Dictionary_2_ValueCollection<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
138        #[rename(name = "dictionary")]
139        pub dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<T0, T1>,
140    }
141
142    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/dictionary_2/Dictionary_2_Entry.md"))]
143    #[repr(C)]
144    #[derive(::core::clone::Clone, ::core::marker::Copy)]
145    pub struct Dictionary_2_Entry<T0, T1> {
146        pub _phantom: ::core::marker::PhantomData<(T0, T1)>,
147    }
148    impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ::unity::ClassIdentity for Dictionary_2_Entry<T0, T1> {
149        const NAME: &'static str = "Dictionary`2.Entry";
150        const NAMESPACE: &'static str = "System.Collections.Generic";
151
152        fn class() -> ::unity::Class {
153            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
154            *CACHE.get_or_init(|| {
155                ::unity::Class::lookup(Self::NAMESPACE, Self::NAME)
156                    .make_generic(&[<T0 as ::unity::ClassIdentity>::class(), <T1 as ::unity::ClassIdentity>::class()])
157                    .expect("generic instantiation")
158            })
159        }
160    }
161    impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ::unity::IlType for Dictionary_2_Entry<T0, T1> {
162        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
163            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
164        }
165    }
166}
167
168#[cfg(feature = "system-collections-generic-dictionary_2-types")]
169pub use __types::*;
170
171#[cfg(feature = "system-collections-generic-dictionary_2")]
172#[::unity::methods(value)]
173impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> Dictionary_2_Enumerator<T0, T1> {
174    #[doc = "`.ctor(crate::system::collections::generic::dictionary_2::Dictionary_2<T0,T1>, i32)` overload"]
175    #[method(name = ".ctor", args = 2)]
176    pub fn ctor(self, dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<T0, T1>, get_enumerator_ret_type: i32) -> ();
177
178    #[doc = "`MoveNext()` overload"]
179    #[method(name = "MoveNext", args = 0)]
180    pub fn move_next(self) -> bool;
181
182    #[doc = "`get_Current()` overload"]
183    #[method(name = "get_Current", args = 0)]
184    pub fn get_current(self) -> crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<T0, T1>;
185
186    #[doc = "`Dispose()` overload"]
187    #[method(name = "Dispose", args = 0)]
188    pub fn dispose(self) -> ();
189
190    #[doc = "`System.Collections.IEnumerator.get_Current()` overload"]
191    #[method(name = "System.Collections.IEnumerator.get_Current", args = 0)]
192    pub fn system_collections_i_enumerator_get_current(self) -> crate::system::object::Object;
193
194    #[doc = "`System.Collections.IEnumerator.Reset()` overload"]
195    #[method(name = "System.Collections.IEnumerator.Reset", args = 0)]
196    pub fn system_collections_i_enumerator_reset(self) -> ();
197
198    #[doc = "`System.Collections.IDictionaryEnumerator.get_Entry()` overload"]
199    #[method(name = "System.Collections.IDictionaryEnumerator.get_Entry", args = 0)]
200    pub fn system_collections_i_dictionary_enumerator_get_entry(self) -> crate::system::collections::dictionaryentry::DictionaryEntry;
201
202    #[doc = "`System.Collections.IDictionaryEnumerator.get_Key()` overload"]
203    #[method(name = "System.Collections.IDictionaryEnumerator.get_Key", args = 0)]
204    pub fn system_collections_i_dictionary_enumerator_get_key(self) -> crate::system::object::Object;
205
206    #[doc = "`System.Collections.IDictionaryEnumerator.get_Value()` overload"]
207    #[method(name = "System.Collections.IDictionaryEnumerator.get_Value", args = 0)]
208    pub fn system_collections_i_dictionary_enumerator_get_value(self) -> crate::system::object::Object;
209}
210
211#[cfg(feature = "system-collections-generic-dictionary_2")]
212#[::unity::methods(value)]
213impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> Dictionary_2_ValueCollection_Enumerator<T0, T1> {
214    #[doc = "`.ctor(crate::system::collections::generic::dictionary_2::Dictionary_2<T0,T1>)` overload"]
215    #[method(name = ".ctor", args = 1)]
216    pub fn ctor(self, dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<T0, T1>) -> ();
217
218    #[doc = "`Dispose()` overload"]
219    #[method(name = "Dispose", args = 0)]
220    pub fn dispose(self) -> ();
221
222    #[doc = "`MoveNext()` overload"]
223    #[method(name = "MoveNext", args = 0)]
224    pub fn move_next(self) -> bool;
225
226    #[doc = "`get_Current()` overload"]
227    #[method(name = "get_Current", args = 0)]
228    pub fn get_current(self) -> T1;
229
230    #[doc = "`System.Collections.IEnumerator.get_Current()` overload"]
231    #[method(name = "System.Collections.IEnumerator.get_Current", args = 0)]
232    pub fn system_collections_i_enumerator_get_current(self) -> crate::system::object::Object;
233
234    #[doc = "`System.Collections.IEnumerator.Reset()` overload"]
235    #[method(name = "System.Collections.IEnumerator.Reset", args = 0)]
236    pub fn system_collections_i_enumerator_reset(self) -> ();
237}
238
239#[cfg(feature = "system-collections-generic-dictionary_2")]
240#[::unity::methods]
241impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> Dictionary_2_KeyCollection<T0, T1> {
242    #[doc = "`.ctor(crate::system::collections::generic::dictionary_2::Dictionary_2<T0,T1>)` overload"]
243    #[method(name = ".ctor", args = 1)]
244    pub fn ctor(self, dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<T0, T1>) -> ();
245
246    #[doc = "`GetEnumerator()` overload"]
247    #[method(name = "GetEnumerator", args = 0)]
248    pub fn get_enumerator(self) -> crate::system::collections::generic::dictionary_2::Dictionary_2_KeyCollection_Enumerator<T0, T1>;
249
250    #[doc = "`CopyTo(::unity::Array<T0>, i32)` overload"]
251    #[method(name = "CopyTo", args = 2)]
252    pub fn copy_to(self, array: ::unity::Array<T0>, index: i32) -> ();
253
254    #[doc = "`get_Count()` overload"]
255    #[method(name = "get_Count", args = 0)]
256    pub fn get_count(self) -> i32;
257
258    #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
259    #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
260    pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
261
262    #[doc = "`System.Collections.ICollection.CopyTo(::unity::IlInstance, i32)` overload"]
263    #[method(name = "System.Collections.ICollection.CopyTo", args = 2)]
264    pub fn system_collections_i_collection_copy_to(self, array: ::unity::IlInstance, index: i32) -> ();
265
266    #[doc = "`System.Collections.ICollection.get_IsSynchronized()` overload"]
267    #[method(name = "System.Collections.ICollection.get_IsSynchronized", args = 0)]
268    pub fn system_collections_i_collection_get_is_synchronized(self) -> bool;
269
270    #[doc = "`System.Collections.ICollection.get_SyncRoot()` overload"]
271    #[method(name = "System.Collections.ICollection.get_SyncRoot", args = 0)]
272    pub fn system_collections_i_collection_get_sync_root(self) -> crate::system::object::Object;
273}
274
275#[cfg(feature = "system-collections-generic-dictionary_2")]
276impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> Dictionary_2_KeyCollection<T0, T1> {
277    #[doc = "`.ctor(crate::system::collections::generic::dictionary_2::Dictionary_2<T0,T1>)` — overload selector"]
278    pub fn new(dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<T0, T1>) -> Self {
279        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
280            panic!(
281                "{}
282::{}
283 failed to instantiate",
284                ::core::stringify!(Dictionary_2_KeyCollection),
285                ::core::stringify!(new),
286            )
287        });
288        <Self as IDictionary_2_KeyCollectionMethods<T0, T1>>::ctor(this, dictionary);
289        this
290    }
291}
292
293#[cfg(feature = "system-collections-generic-dictionary_2")]
294#[::unity::methods]
295impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> Dictionary_2<T0, T1> {
296    #[doc = "`.ctor()` overload"]
297    #[method(name = ".ctor", args = 0)]
298    pub fn ctor(self) -> ();
299
300    #[doc = "`.ctor(i32)` overload"]
301    #[method(name = ".ctor", args = 1)]
302    pub fn ctor_2(self, capacity: i32) -> ();
303
304    #[doc = "`.ctor(crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>)` overload"]
305    #[method(name = ".ctor", args = 1)]
306    pub fn ctor_3(self, comparer: crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>) -> ();
307
308    #[doc = "`.ctor(i32, crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>)` overload"]
309    #[method(name = ".ctor", args = 2)]
310    pub fn ctor_4(
311        self,
312        capacity: i32,
313        comparer: crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>,
314    ) -> ();
315
316    #[doc = "`.ctor(crate::system::collections::generic::idictionary_2_interface::IDictionary_2_Interface<T0,T1>)` overload"]
317    #[method(name = ".ctor", args = 1)]
318    pub fn ctor_5(self, dictionary: crate::system::collections::generic::idictionary_2_interface::IDictionary_2_Interface<T0, T1>) -> ();
319
320    #[doc = "`.ctor(crate::system::collections::generic::idictionary_2_interface::IDictionary_2_Interface<T0,T1>, crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>)` overload"]
321    #[method(name = ".ctor", args = 2)]
322    pub fn ctor_6(
323        self,
324        dictionary: crate::system::collections::generic::idictionary_2_interface::IDictionary_2_Interface<T0, T1>,
325        comparer: crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>,
326    ) -> ();
327
328    #[doc = "`get_Count()` overload"]
329    #[method(name = "get_Count", args = 0)]
330    pub fn get_count(self) -> i32;
331
332    #[doc = "`get_Keys()` overload"]
333    #[method(name = "get_Keys", args = 0)]
334    pub fn get_keys(self) -> crate::system::collections::generic::dictionary_2::Dictionary_2_KeyCollection<T0, T1>;
335
336    #[doc = "`get_Values()` overload"]
337    #[method(name = "get_Values", args = 0)]
338    pub fn get_values(self) -> crate::system::collections::generic::dictionary_2::Dictionary_2_ValueCollection<T0, T1>;
339
340    #[doc = "`get_Item(T0)` overload"]
341    #[method(name = "get_Item", args = 1)]
342    pub fn get_item(self, key: T0) -> T1;
343
344    #[doc = "`set_Item(T0, T1)` overload"]
345    #[method(name = "set_Item", args = 2)]
346    pub fn set_item(self, key: T0, value: T1) -> ();
347
348    #[doc = "`Add(T0, T1)` overload"]
349    #[method(name = "Add", args = 2)]
350    pub fn add(self, key: T0, value: T1) -> ();
351
352    #[doc = "`Clear()` overload"]
353    #[method(name = "Clear", args = 0)]
354    pub fn clear(self) -> ();
355
356    #[doc = "`ContainsKey(T0)` overload"]
357    #[method(name = "ContainsKey", args = 1)]
358    pub fn contains_key(self, key: T0) -> bool;
359
360    #[doc = "`ContainsValue(T1)` overload"]
361    #[method(name = "ContainsValue", args = 1)]
362    pub fn contains_value(self, value: T1) -> bool;
363
364    #[doc = "`CopyTo(::unity::Array<crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<T0,T1>>, i32)` overload"]
365    #[method(name = "CopyTo", args = 2)]
366    pub fn copy_to(self, array: ::unity::Array<crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<T0, T1>>, index: i32) -> ();
367
368    #[doc = "`GetEnumerator()` overload"]
369    #[method(name = "GetEnumerator", args = 0)]
370    pub fn get_enumerator(self) -> crate::system::collections::generic::dictionary_2::Dictionary_2_Enumerator<T0, T1>;
371
372    #[doc = "`FindEntry(T0)` overload"]
373    #[method(name = "FindEntry", args = 1)]
374    pub fn find_entry(self, key: T0) -> i32;
375
376    #[doc = "`Initialize(i32)` overload"]
377    #[method(name = "Initialize", args = 1)]
378    pub fn initialize(self, capacity: i32) -> ();
379
380    #[doc = "`TryInsert(T0, T1, crate::system::collections::generic::insertionbehavior::InsertionBehavior)` overload"]
381    #[method(name = "TryInsert", args = 3)]
382    pub fn try_insert(self, key: T0, value: T1, behavior: crate::system::collections::generic::insertionbehavior::InsertionBehavior) -> bool;
383
384    #[doc = "`OnDeserialization(crate::system::object::Object)` overload"]
385    #[method(name = "OnDeserialization", args = 1)]
386    pub fn on_deserialization(self, sender: crate::system::object::Object) -> ();
387
388    #[doc = "`Resize()` overload"]
389    #[method(name = "Resize", args = 0)]
390    pub fn resize(self) -> ();
391
392    #[doc = "`Resize(i32, bool)` overload"]
393    #[method(name = "Resize", args = 2)]
394    pub fn resize_2(self, new_size: i32, force_new_hash_codes: bool) -> ();
395
396    #[doc = "`Remove(T0)` overload"]
397    #[method(name = "Remove", args = 1)]
398    pub fn remove(self, key: T0) -> bool;
399
400    #[doc = "`TryGetValue(T0, *mutT1)` overload"]
401    #[method(name = "TryGetValue", args = 2)]
402    pub fn try_get_value(self, key: T0, value: *mut T1) -> bool;
403
404    #[doc = "`TryAdd(T0, T1)` overload"]
405    #[method(name = "TryAdd", args = 2)]
406    pub fn try_add(self, key: T0, value: T1) -> bool;
407
408    #[doc = "`System.Collections.ICollection.CopyTo(::unity::IlInstance, i32)` overload"]
409    #[method(name = "System.Collections.ICollection.CopyTo", args = 2)]
410    pub fn system_collections_i_collection_copy_to(self, array: ::unity::IlInstance, index: i32) -> ();
411
412    #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
413    #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
414    pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
415
416    #[doc = "`System.Collections.ICollection.get_IsSynchronized()` overload"]
417    #[method(name = "System.Collections.ICollection.get_IsSynchronized", args = 0)]
418    pub fn system_collections_i_collection_get_is_synchronized(self) -> bool;
419
420    #[doc = "`System.Collections.ICollection.get_SyncRoot()` overload"]
421    #[method(name = "System.Collections.ICollection.get_SyncRoot", args = 0)]
422    pub fn system_collections_i_collection_get_sync_root(self) -> crate::system::object::Object;
423
424    #[doc = "`System.Collections.IDictionary.get_IsFixedSize()` overload"]
425    #[method(name = "System.Collections.IDictionary.get_IsFixedSize", args = 0)]
426    pub fn system_collections_i_dictionary_get_is_fixed_size(self) -> bool;
427
428    #[doc = "`System.Collections.IDictionary.get_IsReadOnly()` overload"]
429    #[method(name = "System.Collections.IDictionary.get_IsReadOnly", args = 0)]
430    pub fn system_collections_i_dictionary_get_is_read_only(self) -> bool;
431
432    #[doc = "`System.Collections.IDictionary.get_Keys()` overload"]
433    #[method(name = "System.Collections.IDictionary.get_Keys", args = 0)]
434    pub fn system_collections_i_dictionary_get_keys(self) -> crate::system::collections::icollection::ICollection;
435
436    #[doc = "`System.Collections.IDictionary.get_Values()` overload"]
437    #[method(name = "System.Collections.IDictionary.get_Values", args = 0)]
438    pub fn system_collections_i_dictionary_get_values(self) -> crate::system::collections::icollection::ICollection;
439
440    #[doc = "`System.Collections.IDictionary.get_Item(crate::system::object::Object)` overload"]
441    #[method(name = "System.Collections.IDictionary.get_Item", args = 1)]
442    pub fn system_collections_i_dictionary_get_item(self, key: crate::system::object::Object) -> crate::system::object::Object;
443
444    #[doc = "`System.Collections.IDictionary.set_Item(crate::system::object::Object, crate::system::object::Object)` overload"]
445    #[method(name = "System.Collections.IDictionary.set_Item", args = 2)]
446    pub fn system_collections_i_dictionary_set_item(self, key: crate::system::object::Object, value: crate::system::object::Object) -> ();
447
448    #[doc = "`IsCompatibleKey(crate::system::object::Object)` overload"]
449    #[method(name = "IsCompatibleKey", args = 1)]
450    pub fn is_compatible_key(key: crate::system::object::Object) -> bool;
451
452    #[doc = "`System.Collections.IDictionary.Add(crate::system::object::Object, crate::system::object::Object)` overload"]
453    #[method(name = "System.Collections.IDictionary.Add", args = 2)]
454    pub fn system_collections_i_dictionary_add(self, key: crate::system::object::Object, value: crate::system::object::Object) -> ();
455
456    #[doc = "`System.Collections.IDictionary.Contains(crate::system::object::Object)` overload"]
457    #[method(name = "System.Collections.IDictionary.Contains", args = 1)]
458    pub fn system_collections_i_dictionary_contains(self, key: crate::system::object::Object) -> bool;
459
460    #[doc = "`System.Collections.IDictionary.GetEnumerator()` overload"]
461    #[method(name = "System.Collections.IDictionary.GetEnumerator", args = 0)]
462    pub fn system_collections_i_dictionary_get_enumerator(self) -> crate::system::collections::idictionaryenumerator::IDictionaryEnumerator;
463
464    #[doc = "`System.Collections.IDictionary.Remove(crate::system::object::Object)` overload"]
465    #[method(name = "System.Collections.IDictionary.Remove", args = 1)]
466    pub fn system_collections_i_dictionary_remove(self, key: crate::system::object::Object) -> ();
467}
468
469#[cfg(feature = "system-collections-generic-dictionary_2")]
470impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> Dictionary_2<T0, T1> {
471    #[doc = "`.ctor()` — no args"]
472    pub fn new() -> Self {
473        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
474            panic!(
475                "{}
476::{}
477 failed to instantiate",
478                ::core::stringify!(Dictionary_2),
479                ::core::stringify!(new),
480            )
481        });
482        <Self as IDictionary_2Methods<T0, T1>>::ctor(this);
483        this
484    }
485
486    #[doc = "`.ctor(i32)` — overload selector"]
487    pub fn new_2(capacity: i32) -> Self {
488        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
489            panic!(
490                "{}
491::{}
492 failed to instantiate",
493                ::core::stringify!(Dictionary_2),
494                ::core::stringify!(new_2),
495            )
496        });
497        <Self as IDictionary_2Methods<T0, T1>>::ctor_2(this, capacity);
498        this
499    }
500
501    #[doc = "`.ctor(crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>)` — overload selector"]
502    pub fn new_3(comparer: crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>) -> Self {
503        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
504            panic!(
505                "{}
506::{}
507 failed to instantiate",
508                ::core::stringify!(Dictionary_2),
509                ::core::stringify!(new_3),
510            )
511        });
512        <Self as IDictionary_2Methods<T0, T1>>::ctor_3(this, comparer);
513        this
514    }
515
516    #[doc = "`.ctor(i32, crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>)` — overload selector"]
517    pub fn new_4(
518        capacity: i32,
519        comparer: crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>,
520    ) -> Self {
521        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
522            panic!(
523                "{}
524::{}
525 failed to instantiate",
526                ::core::stringify!(Dictionary_2),
527                ::core::stringify!(new_4),
528            )
529        });
530        <Self as IDictionary_2Methods<T0, T1>>::ctor_4(this, capacity, comparer);
531        this
532    }
533
534    #[doc = "`.ctor(crate::system::collections::generic::idictionary_2_interface::IDictionary_2_Interface<T0,T1>)` — overload selector"]
535    pub fn new_5(dictionary: crate::system::collections::generic::idictionary_2_interface::IDictionary_2_Interface<T0, T1>) -> Self {
536        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
537            panic!(
538                "{}
539::{}
540 failed to instantiate",
541                ::core::stringify!(Dictionary_2),
542                ::core::stringify!(new_5),
543            )
544        });
545        <Self as IDictionary_2Methods<T0, T1>>::ctor_5(this, dictionary);
546        this
547    }
548
549    #[doc = "`.ctor(crate::system::collections::generic::idictionary_2_interface::IDictionary_2_Interface<T0,T1>, crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>)` — overload selector"]
550    pub fn new_6(
551        dictionary: crate::system::collections::generic::idictionary_2_interface::IDictionary_2_Interface<T0, T1>,
552        comparer: crate::system::collections::generic::iequalitycomparer_1_interface::IEqualityComparer_1_Interface<T0>,
553    ) -> Self {
554        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
555            panic!(
556                "{}
557::{}
558 failed to instantiate",
559                ::core::stringify!(Dictionary_2),
560                ::core::stringify!(new_6),
561            )
562        });
563        <Self as IDictionary_2Methods<T0, T1>>::ctor_6(this, dictionary, comparer);
564        this
565    }
566}
567
568#[cfg(feature = "system-collections-generic-dictionary_2")]
569#[::unity::methods(value)]
570impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> Dictionary_2_KeyCollection_Enumerator<T0, T1> {
571    #[doc = "`.ctor(crate::system::collections::generic::dictionary_2::Dictionary_2<T0,T1>)` overload"]
572    #[method(name = ".ctor", args = 1)]
573    pub fn ctor(self, dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<T0, T1>) -> ();
574
575    #[doc = "`Dispose()` overload"]
576    #[method(name = "Dispose", args = 0)]
577    pub fn dispose(self) -> ();
578
579    #[doc = "`MoveNext()` overload"]
580    #[method(name = "MoveNext", args = 0)]
581    pub fn move_next(self) -> bool;
582
583    #[doc = "`get_Current()` overload"]
584    #[method(name = "get_Current", args = 0)]
585    pub fn get_current(self) -> T0;
586
587    #[doc = "`System.Collections.IEnumerator.get_Current()` overload"]
588    #[method(name = "System.Collections.IEnumerator.get_Current", args = 0)]
589    pub fn system_collections_i_enumerator_get_current(self) -> crate::system::object::Object;
590
591    #[doc = "`System.Collections.IEnumerator.Reset()` overload"]
592    #[method(name = "System.Collections.IEnumerator.Reset", args = 0)]
593    pub fn system_collections_i_enumerator_reset(self) -> ();
594}
595
596#[cfg(feature = "system-collections-generic-dictionary_2")]
597#[::unity::methods]
598impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> Dictionary_2_ValueCollection<T0, T1> {
599    #[doc = "`.ctor(crate::system::collections::generic::dictionary_2::Dictionary_2<T0,T1>)` overload"]
600    #[method(name = ".ctor", args = 1)]
601    pub fn ctor(self, dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<T0, T1>) -> ();
602
603    #[doc = "`GetEnumerator()` overload"]
604    #[method(name = "GetEnumerator", args = 0)]
605    pub fn get_enumerator(self) -> crate::system::collections::generic::dictionary_2::Dictionary_2_ValueCollection_Enumerator<T0, T1>;
606
607    #[doc = "`CopyTo(::unity::Array<T1>, i32)` overload"]
608    #[method(name = "CopyTo", args = 2)]
609    pub fn copy_to(self, array: ::unity::Array<T1>, index: i32) -> ();
610
611    #[doc = "`get_Count()` overload"]
612    #[method(name = "get_Count", args = 0)]
613    pub fn get_count(self) -> i32;
614
615    #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
616    #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
617    pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
618
619    #[doc = "`System.Collections.ICollection.CopyTo(::unity::IlInstance, i32)` overload"]
620    #[method(name = "System.Collections.ICollection.CopyTo", args = 2)]
621    pub fn system_collections_i_collection_copy_to(self, array: ::unity::IlInstance, index: i32) -> ();
622
623    #[doc = "`System.Collections.ICollection.get_IsSynchronized()` overload"]
624    #[method(name = "System.Collections.ICollection.get_IsSynchronized", args = 0)]
625    pub fn system_collections_i_collection_get_is_synchronized(self) -> bool;
626
627    #[doc = "`System.Collections.ICollection.get_SyncRoot()` overload"]
628    #[method(name = "System.Collections.ICollection.get_SyncRoot", args = 0)]
629    pub fn system_collections_i_collection_get_sync_root(self) -> crate::system::object::Object;
630}
631
632#[cfg(feature = "system-collections-generic-dictionary_2")]
633impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> Dictionary_2_ValueCollection<T0, T1> {
634    #[doc = "`.ctor(crate::system::collections::generic::dictionary_2::Dictionary_2<T0,T1>)` — overload selector"]
635    pub fn new(dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<T0, T1>) -> Self {
636        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
637            panic!(
638                "{}
639::{}
640 failed to instantiate",
641                ::core::stringify!(Dictionary_2_ValueCollection),
642                ::core::stringify!(new),
643            )
644        });
645        <Self as IDictionary_2_ValueCollectionMethods<T0, T1>>::ctor(this, dictionary);
646        this
647    }
648}
649
650#[cfg(feature = "system-collections-generic-dictionary_2")]
651#[doc(hidden)]
652pub mod prelude {
653    pub use super::{
654        Dictionary_2, Dictionary_2_Entry, Dictionary_2_Enumerator, Dictionary_2_KeyCollection, Dictionary_2_KeyCollection_Enumerator,
655        Dictionary_2_ValueCollection, Dictionary_2_ValueCollection_Enumerator, IDictionary_2, IDictionary_2Methods, IDictionary_2_KeyCollection,
656        IDictionary_2_KeyCollectionMethods, IDictionary_2_ValueCollection, IDictionary_2_ValueCollectionMethods,
657    };
658    #[cfg(feature = "system-object")]
659    pub use crate::system::object::IObjectMethods;
660    #[cfg(feature = "system-valuetype")]
661    pub use crate::system::valuetype::IValueTypeMethods;
662    pub use crate::system::{object::IObject, valuetype::IValueType};
663}