1#[cfg(feature = "system-collections-generic-sorteddictionary_2-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 collections::generic::comparer_1::{Comparer_1, IComparer_1},
10 object::{IObject, Object},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/sorteddictionary_2/SortedDictionary_2_ValueCollection_Enumerator.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy)]
17 pub struct SortedDictionary_2_ValueCollection_Enumerator<T0, T1> {
18 pub _phantom: ::core::marker::PhantomData<(T0, T1)>,
19 }
20 impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ::unity::ClassIdentity for SortedDictionary_2_ValueCollection_Enumerator<T0, T1> {
21 const NAME: &'static str = "SortedDictionary`2.ValueCollection.Enumerator";
22 const NAMESPACE: &'static str = "System.Collections.Generic";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| {
27 ::unity::Class::lookup(Self::NAMESPACE, Self::NAME)
28 .make_generic(&[<T0 as ::unity::ClassIdentity>::class(), <T1 as ::unity::ClassIdentity>::class()])
29 .expect("generic instantiation")
30 })
31 }
32 }
33 impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ::unity::IlType for SortedDictionary_2_ValueCollection_Enumerator<T0, T1> {
34 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
35 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
36 }
37 }
38
39 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/sorteddictionary_2/SortedDictionary_2_Enumerator.md"))]
40 #[repr(C)]
41 #[derive(::core::clone::Clone, ::core::marker::Copy)]
42 pub struct SortedDictionary_2_Enumerator<T0, T1> {
43 pub _phantom: ::core::marker::PhantomData<(T0, T1)>,
44 }
45 impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ::unity::ClassIdentity for SortedDictionary_2_Enumerator<T0, T1> {
46 const NAME: &'static str = "SortedDictionary`2.Enumerator";
47 const NAMESPACE: &'static str = "System.Collections.Generic";
48
49 fn class() -> ::unity::Class {
50 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
51 *CACHE.get_or_init(|| {
52 ::unity::Class::lookup(Self::NAMESPACE, Self::NAME)
53 .make_generic(&[<T0 as ::unity::ClassIdentity>::class(), <T1 as ::unity::ClassIdentity>::class()])
54 .expect("generic instantiation")
55 })
56 }
57 }
58 impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ::unity::IlType for SortedDictionary_2_Enumerator<T0, T1> {
59 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
60 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
61 }
62 }
63
64 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/sorteddictionary_2/SortedDictionary_2_KeyCollection.md"))]
65 #[::unity::class(namespace = "System.Collections.Generic", name = "SortedDictionary`2.KeyCollection")]
66 #[parent(crate::system::object::Object)]
67 pub struct SortedDictionary_2_KeyCollection<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
68 #[rename(name = "_dictionary")]
69 pub dictionary: crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0, T1>,
70 }
71
72 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/sorteddictionary_2/SortedDictionary_2_KeyCollection_Enumerator.md"))]
73 #[repr(C)]
74 #[derive(::core::clone::Clone, ::core::marker::Copy)]
75 pub struct SortedDictionary_2_KeyCollection_Enumerator<T0, T1> {
76 pub _phantom: ::core::marker::PhantomData<(T0, T1)>,
77 }
78 impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ::unity::ClassIdentity for SortedDictionary_2_KeyCollection_Enumerator<T0, T1> {
79 const NAME: &'static str = "SortedDictionary`2.KeyCollection.Enumerator";
80 const NAMESPACE: &'static str = "System.Collections.Generic";
81
82 fn class() -> ::unity::Class {
83 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
84 *CACHE.get_or_init(|| {
85 ::unity::Class::lookup(Self::NAMESPACE, Self::NAME)
86 .make_generic(&[<T0 as ::unity::ClassIdentity>::class(), <T1 as ::unity::ClassIdentity>::class()])
87 .expect("generic instantiation")
88 })
89 }
90 }
91 impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> ::unity::IlType for SortedDictionary_2_KeyCollection_Enumerator<T0, T1> {
92 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
93 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
94 }
95 }
96
97 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/sorteddictionary_2/SortedDictionary_2.md"))]
98 #[::unity::class(namespace = "System.Collections.Generic", name = "SortedDictionary`2")]
99 #[parent(crate::system::object::Object)]
100 pub struct SortedDictionary_2<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
101 #[rename(name = "_keys")]
102 pub keys: crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2_KeyCollection<T0, T1>,
103 #[rename(name = "_values")]
104 pub values: crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2_ValueCollection<T0, T1>,
105 #[rename(name = "_set")]
106 pub set:
107 crate::system::collections::generic::treeset_1::TreeSet_1<crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<T0, T1>>,
108 }
109
110 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/sorteddictionary_2/SortedDictionary_2_KeyValuePairComparer.md"))]
111 #[::unity::class(namespace = "System.Collections.Generic", name = "SortedDictionary`2.KeyValuePairComparer")]
112 #[parent(crate::system::collections::generic::comparer_1::Comparer_1<crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<T0,T1> >)]
113 #[parent(crate::system::object::Object)]
114 pub struct SortedDictionary_2_KeyValuePairComparer<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
115 #[rename(name = "keyComparer")]
116 pub key_comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>,
117 }
118
119 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/collections/generic/sorteddictionary_2/SortedDictionary_2_ValueCollection.md"))]
120 #[::unity::class(namespace = "System.Collections.Generic", name = "SortedDictionary`2.ValueCollection")]
121 #[parent(crate::system::object::Object)]
122 pub struct SortedDictionary_2_ValueCollection<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> {
123 #[rename(name = "_dictionary")]
124 pub dictionary: crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0, T1>,
125 }
126}
127
128#[cfg(feature = "system-collections-generic-sorteddictionary_2-types")]
129pub use __types::*;
130
131#[cfg(feature = "system-collections-generic-sorteddictionary_2")]
132#[::unity::methods(value)]
133impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SortedDictionary_2_ValueCollection_Enumerator<T0, T1> {
134 #[doc = "`.ctor(crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0,T1>)` overload"]
135 #[method(name = ".ctor", args = 1)]
136 pub fn ctor(self, dictionary: crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0, T1>) -> ();
137
138 #[doc = "`Dispose()` overload"]
139 #[method(name = "Dispose", args = 0)]
140 pub fn dispose(self) -> ();
141
142 #[doc = "`MoveNext()` overload"]
143 #[method(name = "MoveNext", args = 0)]
144 pub fn move_next(self) -> bool;
145
146 #[doc = "`get_Current()` overload"]
147 #[method(name = "get_Current", args = 0)]
148 pub fn get_current(self) -> T1;
149
150 #[doc = "`System.Collections.IEnumerator.get_Current()` overload"]
151 #[method(name = "System.Collections.IEnumerator.get_Current", args = 0)]
152 pub fn system_collections_i_enumerator_get_current(self) -> crate::system::object::Object;
153
154 #[doc = "`System.Collections.IEnumerator.Reset()` overload"]
155 #[method(name = "System.Collections.IEnumerator.Reset", args = 0)]
156 pub fn system_collections_i_enumerator_reset(self) -> ();
157}
158
159#[cfg(feature = "system-collections-generic-sorteddictionary_2")]
160#[::unity::methods(value)]
161impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SortedDictionary_2_Enumerator<T0, T1> {
162 #[doc = "`.ctor(crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0,T1>, i32)` overload"]
163 #[method(name = ".ctor", args = 2)]
164 pub fn ctor(
165 self,
166 dictionary: crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0, T1>,
167 get_enumerator_ret_type: i32,
168 ) -> ();
169
170 #[doc = "`MoveNext()` overload"]
171 #[method(name = "MoveNext", args = 0)]
172 pub fn move_next(self) -> bool;
173
174 #[doc = "`Dispose()` overload"]
175 #[method(name = "Dispose", args = 0)]
176 pub fn dispose(self) -> ();
177
178 #[doc = "`get_Current()` overload"]
179 #[method(name = "get_Current", args = 0)]
180 pub fn get_current(self) -> crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<T0, T1>;
181
182 #[doc = "`get_NotStartedOrEnded()` overload"]
183 #[method(name = "get_NotStartedOrEnded", args = 0)]
184 pub fn get_not_started_or_ended(self) -> bool;
185
186 #[doc = "`Reset()` overload"]
187 #[method(name = "Reset", args = 0)]
188 pub fn reset(self) -> ();
189
190 #[doc = "`System.Collections.IEnumerator.Reset()` overload"]
191 #[method(name = "System.Collections.IEnumerator.Reset", args = 0)]
192 pub fn system_collections_i_enumerator_reset(self) -> ();
193
194 #[doc = "`System.Collections.IEnumerator.get_Current()` overload"]
195 #[method(name = "System.Collections.IEnumerator.get_Current", args = 0)]
196 pub fn system_collections_i_enumerator_get_current(self) -> crate::system::object::Object;
197
198 #[doc = "`System.Collections.IDictionaryEnumerator.get_Key()` overload"]
199 #[method(name = "System.Collections.IDictionaryEnumerator.get_Key", args = 0)]
200 pub fn system_collections_i_dictionary_enumerator_get_key(self) -> crate::system::object::Object;
201
202 #[doc = "`System.Collections.IDictionaryEnumerator.get_Value()` overload"]
203 #[method(name = "System.Collections.IDictionaryEnumerator.get_Value", args = 0)]
204 pub fn system_collections_i_dictionary_enumerator_get_value(self) -> crate::system::object::Object;
205
206 #[doc = "`System.Collections.IDictionaryEnumerator.get_Entry()` overload"]
207 #[method(name = "System.Collections.IDictionaryEnumerator.get_Entry", args = 0)]
208 pub fn system_collections_i_dictionary_enumerator_get_entry(self) -> crate::system::collections::dictionaryentry::DictionaryEntry;
209}
210
211#[cfg(feature = "system-collections-generic-sorteddictionary_2")]
212#[::unity::methods]
213impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SortedDictionary_2_KeyCollection<T0, T1> {
214 #[doc = "`.ctor(crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0,T1>)` overload"]
215 #[method(name = ".ctor", args = 1)]
216 pub fn ctor(self, dictionary: crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0, T1>) -> ();
217
218 #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
219 #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
220 pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
221
222 #[doc = "`CopyTo(::unity::Array<T0>, i32)` overload"]
223 #[method(name = "CopyTo", args = 2)]
224 pub fn copy_to(self, array: ::unity::Array<T0>, index: i32) -> ();
225
226 #[doc = "`System.Collections.ICollection.CopyTo(::unity::IlInstance, i32)` overload"]
227 #[method(name = "System.Collections.ICollection.CopyTo", args = 2)]
228 pub fn system_collections_i_collection_copy_to(self, array: ::unity::IlInstance, index: i32) -> ();
229
230 #[doc = "`get_Count()` overload"]
231 #[method(name = "get_Count", args = 0)]
232 pub fn get_count(self) -> i32;
233
234 #[doc = "`System.Collections.ICollection.get_IsSynchronized()` overload"]
235 #[method(name = "System.Collections.ICollection.get_IsSynchronized", args = 0)]
236 pub fn system_collections_i_collection_get_is_synchronized(self) -> bool;
237
238 #[doc = "`System.Collections.ICollection.get_SyncRoot()` overload"]
239 #[method(name = "System.Collections.ICollection.get_SyncRoot", args = 0)]
240 pub fn system_collections_i_collection_get_sync_root(self) -> crate::system::object::Object;
241}
242
243#[cfg(feature = "system-collections-generic-sorteddictionary_2")]
244impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SortedDictionary_2_KeyCollection<T0, T1> {
245 #[doc = "`.ctor(crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0,T1>)` — overload selector"]
246 pub fn new(dictionary: crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0, T1>) -> Self {
247 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
248 panic!(
249 "{}
250::{}
251 failed to instantiate",
252 ::core::stringify!(SortedDictionary_2_KeyCollection),
253 ::core::stringify!(new),
254 )
255 });
256 <Self as ISortedDictionary_2_KeyCollectionMethods<T0, T1>>::ctor(this, dictionary);
257 this
258 }
259}
260
261#[cfg(feature = "system-collections-generic-sorteddictionary_2")]
262#[::unity::methods(value)]
263impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SortedDictionary_2_KeyCollection_Enumerator<T0, T1> {
264 #[doc = "`.ctor(crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0,T1>)` overload"]
265 #[method(name = ".ctor", args = 1)]
266 pub fn ctor(self, dictionary: crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0, T1>) -> ();
267
268 #[doc = "`Dispose()` overload"]
269 #[method(name = "Dispose", args = 0)]
270 pub fn dispose(self) -> ();
271
272 #[doc = "`MoveNext()` overload"]
273 #[method(name = "MoveNext", args = 0)]
274 pub fn move_next(self) -> bool;
275
276 #[doc = "`get_Current()` overload"]
277 #[method(name = "get_Current", args = 0)]
278 pub fn get_current(self) -> T0;
279
280 #[doc = "`System.Collections.IEnumerator.get_Current()` overload"]
281 #[method(name = "System.Collections.IEnumerator.get_Current", args = 0)]
282 pub fn system_collections_i_enumerator_get_current(self) -> crate::system::object::Object;
283
284 #[doc = "`System.Collections.IEnumerator.Reset()` overload"]
285 #[method(name = "System.Collections.IEnumerator.Reset", args = 0)]
286 pub fn system_collections_i_enumerator_reset(self) -> ();
287}
288
289#[cfg(feature = "system-collections-generic-sorteddictionary_2")]
290#[::unity::methods]
291impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SortedDictionary_2<T0, T1> {
292 #[doc = "`.ctor()` overload"]
293 #[method(name = ".ctor", args = 0)]
294 pub fn ctor(self) -> ();
295
296 #[doc = "`.ctor(crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` overload"]
297 #[method(name = ".ctor", args = 1)]
298 pub fn ctor_2(self, comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>) -> ();
299
300 #[doc = "`get_Item(T0)` overload"]
301 #[method(name = "get_Item", args = 1)]
302 pub fn get_item(self, key: T0) -> T1;
303
304 #[doc = "`set_Item(T0, T1)` overload"]
305 #[method(name = "set_Item", args = 2)]
306 pub fn set_item(self, key: T0, value: T1) -> ();
307
308 #[doc = "`get_Count()` overload"]
309 #[method(name = "get_Count", args = 0)]
310 pub fn get_count(self) -> i32;
311
312 #[doc = "`get_Keys()` overload"]
313 #[method(name = "get_Keys", args = 0)]
314 pub fn get_keys(self) -> crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2_KeyCollection<T0, T1>;
315
316 #[doc = "`get_Values()` overload"]
317 #[method(name = "get_Values", args = 0)]
318 pub fn get_values(self) -> crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2_ValueCollection<T0, T1>;
319
320 #[doc = "`Add(T0, T1)` overload"]
321 #[method(name = "Add", args = 2)]
322 pub fn add(self, key: T0, value: T1) -> ();
323
324 #[doc = "`Clear()` overload"]
325 #[method(name = "Clear", args = 0)]
326 pub fn clear(self) -> ();
327
328 #[doc = "`ContainsKey(T0)` overload"]
329 #[method(name = "ContainsKey", args = 1)]
330 pub fn contains_key(self, key: T0) -> bool;
331
332 #[doc = "`ContainsValue(T1)` overload"]
333 #[method(name = "ContainsValue", args = 1)]
334 pub fn contains_value(self, value: T1) -> bool;
335
336 #[doc = "`CopyTo(::unity::Array<crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<T0,T1>>, i32)` overload"]
337 #[method(name = "CopyTo", args = 2)]
338 pub fn copy_to(self, array: ::unity::Array<crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<T0, T1>>, index: i32) -> ();
339
340 #[doc = "`GetEnumerator()` overload"]
341 #[method(name = "GetEnumerator", args = 0)]
342 pub fn get_enumerator(self) -> crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2_Enumerator<T0, T1>;
343
344 #[doc = "`Remove(T0)` overload"]
345 #[method(name = "Remove", args = 1)]
346 pub fn remove(self, key: T0) -> bool;
347
348 #[doc = "`TryGetValue(T0, *mutT1)` overload"]
349 #[method(name = "TryGetValue", args = 2)]
350 pub fn try_get_value(self, key: T0, value: *mut T1) -> bool;
351
352 #[doc = "`System.Collections.ICollection.CopyTo(::unity::IlInstance, i32)` overload"]
353 #[method(name = "System.Collections.ICollection.CopyTo", args = 2)]
354 pub fn system_collections_i_collection_copy_to(self, array: ::unity::IlInstance, index: i32) -> ();
355
356 #[doc = "`System.Collections.IDictionary.get_IsFixedSize()` overload"]
357 #[method(name = "System.Collections.IDictionary.get_IsFixedSize", args = 0)]
358 pub fn system_collections_i_dictionary_get_is_fixed_size(self) -> bool;
359
360 #[doc = "`System.Collections.IDictionary.get_IsReadOnly()` overload"]
361 #[method(name = "System.Collections.IDictionary.get_IsReadOnly", args = 0)]
362 pub fn system_collections_i_dictionary_get_is_read_only(self) -> bool;
363
364 #[doc = "`System.Collections.IDictionary.get_Keys()` overload"]
365 #[method(name = "System.Collections.IDictionary.get_Keys", args = 0)]
366 pub fn system_collections_i_dictionary_get_keys(self) -> crate::system::collections::icollection::ICollection;
367
368 #[doc = "`System.Collections.IDictionary.get_Values()` overload"]
369 #[method(name = "System.Collections.IDictionary.get_Values", args = 0)]
370 pub fn system_collections_i_dictionary_get_values(self) -> crate::system::collections::icollection::ICollection;
371
372 #[doc = "`System.Collections.IDictionary.get_Item(crate::system::object::Object)` overload"]
373 #[method(name = "System.Collections.IDictionary.get_Item", args = 1)]
374 pub fn system_collections_i_dictionary_get_item(self, key: crate::system::object::Object) -> crate::system::object::Object;
375
376 #[doc = "`System.Collections.IDictionary.set_Item(crate::system::object::Object, crate::system::object::Object)` overload"]
377 #[method(name = "System.Collections.IDictionary.set_Item", args = 2)]
378 pub fn system_collections_i_dictionary_set_item(self, key: crate::system::object::Object, value: crate::system::object::Object) -> ();
379
380 #[doc = "`System.Collections.IDictionary.Add(crate::system::object::Object, crate::system::object::Object)` overload"]
381 #[method(name = "System.Collections.IDictionary.Add", args = 2)]
382 pub fn system_collections_i_dictionary_add(self, key: crate::system::object::Object, value: crate::system::object::Object) -> ();
383
384 #[doc = "`System.Collections.IDictionary.Contains(crate::system::object::Object)` overload"]
385 #[method(name = "System.Collections.IDictionary.Contains", args = 1)]
386 pub fn system_collections_i_dictionary_contains(self, key: crate::system::object::Object) -> bool;
387
388 #[doc = "`IsCompatibleKey(crate::system::object::Object)` overload"]
389 #[method(name = "IsCompatibleKey", args = 1)]
390 pub fn is_compatible_key(key: crate::system::object::Object) -> bool;
391
392 #[doc = "`System.Collections.IDictionary.GetEnumerator()` overload"]
393 #[method(name = "System.Collections.IDictionary.GetEnumerator", args = 0)]
394 pub fn system_collections_i_dictionary_get_enumerator(self) -> crate::system::collections::idictionaryenumerator::IDictionaryEnumerator;
395
396 #[doc = "`System.Collections.IDictionary.Remove(crate::system::object::Object)` overload"]
397 #[method(name = "System.Collections.IDictionary.Remove", args = 1)]
398 pub fn system_collections_i_dictionary_remove(self, key: crate::system::object::Object) -> ();
399
400 #[doc = "`System.Collections.ICollection.get_IsSynchronized()` overload"]
401 #[method(name = "System.Collections.ICollection.get_IsSynchronized", args = 0)]
402 pub fn system_collections_i_collection_get_is_synchronized(self) -> bool;
403
404 #[doc = "`System.Collections.ICollection.get_SyncRoot()` overload"]
405 #[method(name = "System.Collections.ICollection.get_SyncRoot", args = 0)]
406 pub fn system_collections_i_collection_get_sync_root(self) -> crate::system::object::Object;
407
408 #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
409 #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
410 pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
411}
412
413#[cfg(feature = "system-collections-generic-sorteddictionary_2")]
414impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SortedDictionary_2<T0, T1> {
415 #[doc = "`.ctor()` — no args"]
416 pub fn new() -> Self {
417 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
418 panic!(
419 "{}
420::{}
421 failed to instantiate",
422 ::core::stringify!(SortedDictionary_2),
423 ::core::stringify!(new),
424 )
425 });
426 <Self as ISortedDictionary_2Methods<T0, T1>>::ctor(this);
427 this
428 }
429
430 #[doc = "`.ctor(crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` — overload selector"]
431 pub fn new_2(comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>) -> Self {
432 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
433 panic!(
434 "{}
435::{}
436 failed to instantiate",
437 ::core::stringify!(SortedDictionary_2),
438 ::core::stringify!(new_2),
439 )
440 });
441 <Self as ISortedDictionary_2Methods<T0, T1>>::ctor_2(this, comparer);
442 this
443 }
444}
445
446#[cfg(feature = "system-collections-generic-sorteddictionary_2")]
447#[::unity::methods]
448impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SortedDictionary_2_KeyValuePairComparer<T0, T1> {
449 #[doc = "`.ctor(crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` overload"]
450 #[method(name = ".ctor", args = 1)]
451 pub fn ctor(self, key_comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>) -> ();
452
453 #[doc = "`Compare(crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<T0,T1>, crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<T0,T1>)` overload"]
454 #[method(name = "Compare", args = 2)]
455 pub fn compare(
456 self,
457 x: crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<T0, T1>,
458 y: crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<T0, T1>,
459 ) -> i32;
460}
461
462#[cfg(feature = "system-collections-generic-sorteddictionary_2")]
463impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SortedDictionary_2_KeyValuePairComparer<T0, T1> {
464 #[doc = "`.ctor(crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>)` — overload selector"]
465 pub fn new(key_comparer: crate::system::collections::generic::icomparer_1_interface::IComparer_1_Interface<T0>) -> Self {
466 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
467 panic!(
468 "{}
469::{}
470 failed to instantiate",
471 ::core::stringify!(SortedDictionary_2_KeyValuePairComparer),
472 ::core::stringify!(new),
473 )
474 });
475 <Self as ISortedDictionary_2_KeyValuePairComparerMethods<T0, T1>>::ctor(this, key_comparer);
476 this
477 }
478}
479
480#[cfg(feature = "system-collections-generic-sorteddictionary_2")]
481#[::unity::methods]
482impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SortedDictionary_2_ValueCollection<T0, T1> {
483 #[doc = "`.ctor(crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0,T1>)` overload"]
484 #[method(name = ".ctor", args = 1)]
485 pub fn ctor(self, dictionary: crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0, T1>) -> ();
486
487 #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
488 #[method(name = "System.Collections.IEnumerable.GetEnumerator", args = 0)]
489 pub fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator;
490
491 #[doc = "`CopyTo(::unity::Array<T1>, i32)` overload"]
492 #[method(name = "CopyTo", args = 2)]
493 pub fn copy_to(self, array: ::unity::Array<T1>, index: i32) -> ();
494
495 #[doc = "`System.Collections.ICollection.CopyTo(::unity::IlInstance, i32)` overload"]
496 #[method(name = "System.Collections.ICollection.CopyTo", args = 2)]
497 pub fn system_collections_i_collection_copy_to(self, array: ::unity::IlInstance, index: i32) -> ();
498
499 #[doc = "`get_Count()` overload"]
500 #[method(name = "get_Count", args = 0)]
501 pub fn get_count(self) -> i32;
502
503 #[doc = "`System.Collections.ICollection.get_IsSynchronized()` overload"]
504 #[method(name = "System.Collections.ICollection.get_IsSynchronized", args = 0)]
505 pub fn system_collections_i_collection_get_is_synchronized(self) -> bool;
506
507 #[doc = "`System.Collections.ICollection.get_SyncRoot()` overload"]
508 #[method(name = "System.Collections.ICollection.get_SyncRoot", args = 0)]
509 pub fn system_collections_i_collection_get_sync_root(self) -> crate::system::object::Object;
510}
511
512#[cfg(feature = "system-collections-generic-sorteddictionary_2")]
513impl<T0: ::unity::ClassIdentity, T1: ::unity::ClassIdentity> SortedDictionary_2_ValueCollection<T0, T1> {
514 #[doc = "`.ctor(crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0,T1>)` — overload selector"]
515 pub fn new(dictionary: crate::system::collections::generic::sorteddictionary_2::SortedDictionary_2<T0, T1>) -> Self {
516 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
517 panic!(
518 "{}
519::{}
520 failed to instantiate",
521 ::core::stringify!(SortedDictionary_2_ValueCollection),
522 ::core::stringify!(new),
523 )
524 });
525 <Self as ISortedDictionary_2_ValueCollectionMethods<T0, T1>>::ctor(this, dictionary);
526 this
527 }
528}
529
530#[cfg(feature = "system-collections-generic-sorteddictionary_2")]
531#[doc(hidden)]
532pub mod prelude {
533 pub use super::{
534 ISortedDictionary_2, ISortedDictionary_2Methods, ISortedDictionary_2_KeyCollection, ISortedDictionary_2_KeyCollectionMethods,
535 ISortedDictionary_2_KeyValuePairComparer, ISortedDictionary_2_KeyValuePairComparerMethods, ISortedDictionary_2_ValueCollection,
536 ISortedDictionary_2_ValueCollectionMethods, SortedDictionary_2, SortedDictionary_2_Enumerator, SortedDictionary_2_KeyCollection,
537 SortedDictionary_2_KeyCollection_Enumerator, SortedDictionary_2_KeyValuePairComparer, SortedDictionary_2_ValueCollection,
538 SortedDictionary_2_ValueCollection_Enumerator,
539 };
540 #[cfg(feature = "system-collections-generic-comparer_1")]
541 pub use crate::system::collections::generic::comparer_1::IComparer_1Methods;
542 #[cfg(feature = "system-object")]
543 pub use crate::system::object::IObjectMethods;
544 #[cfg(feature = "system-valuetype")]
545 pub use crate::system::valuetype::IValueTypeMethods;
546 pub use crate::system::{collections::generic::comparer_1::IComparer_1, object::IObject, valuetype::IValueType};
547}