Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-collections-specialized-stringcollection-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/collections/specialized/stringcollection/StringCollection.md"))]
11    #[::unity::class(namespace = "System.Collections.Specialized", name = "StringCollection")]
12    #[parent(crate::system::object::Object)]
13    pub struct StringCollection {
14        #[offset(16)]
15        #[rename(name = "data")]
16        pub data: crate::system::collections::arraylist::ArrayList,
17    }
18}
19
20#[cfg(feature = "system-collections-specialized-stringcollection-types")]
21pub use __types::*;
22
23#[cfg(feature = "system-collections-specialized-stringcollection")]
24pub trait IStringCollectionMethods: IStringCollection {
25    #[doc = "`get_Item(i32)` overload"]
26    fn get_item(self, index: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
27        unsafe {
28            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29            ::unity::il2cpp_call!((::unity::module_base()+0x2a272c0usize)as*mut u8, ::unity::Il2CppString;
30(StringCollection)__receiver,(i32)::core::convert::Into::into(index))
31        }
32    }
33    #[doc = "`set_Item(i32, ::unity::Il2CppString)` overload"]
34    fn set_item(self, index: impl ::core::convert::Into<i32>, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
35        unsafe {
36            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37            ::unity::il2cpp_call!((::unity::module_base()+0x2a27340usize)as*mut u8,();
38(StringCollection)__receiver,(i32)::core::convert::Into::into(index),(::unity::Il2CppString)::core::convert::Into::into(value))
39        }
40    }
41    #[doc = "`get_Count()` overload"]
42    fn get_count(self) -> i32 {
43        unsafe {
44            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45            {
46                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
47                let __vi = *__vt.get(15usize).unwrap_or_else(|| {
48                    panic!(
49                        "unity: virtual slot {}
50 out of range (vtable len {}
51) on the runtime class behind {}
52 (method `{}
53`)",
54                        15usize,
55                        __vt.len(),
56                        <StringCollection as ::unity::ClassIdentity>::NAME,
57                        "get_Count",
58                    )
59                });
60                let __inner: extern "C" fn(StringCollection, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
61                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
62                __inner(__receiver, __mi)
63            }
64        }
65    }
66    #[doc = "`System.Collections.IList.get_IsReadOnly()` overload"]
67    fn system_collections_i_list_get_is_read_only(self) -> bool {
68        unsafe {
69            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70            {
71                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
72                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
73                    panic!(
74                        "unity: virtual slot {}
75 out of range (vtable len {}
76) on the runtime class behind {}
77 (method `{}
78`)",
79                        9usize,
80                        __vt.len(),
81                        <StringCollection as ::unity::ClassIdentity>::NAME,
82                        "System.Collections.IList.get_IsReadOnly",
83                    )
84                });
85                let __inner: extern "C" fn(StringCollection, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
86                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
87                __inner(__receiver, __mi)
88            }
89        }
90    }
91    #[doc = "`Add(::unity::Il2CppString)` overload"]
92    fn add(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
93        unsafe {
94            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            ::unity::il2cpp_call!((::unity::module_base()+0x2a27390usize)as*mut u8,i32;
96(StringCollection)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
97        }
98    }
99    #[doc = "`Clear()` overload"]
100    fn clear(self) -> () {
101        unsafe {
102            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103            {
104                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
105                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
106                    panic!(
107                        "unity: virtual slot {}
108 out of range (vtable len {}
109) on the runtime class behind {}
110 (method `{}
111`)",
112                        8usize,
113                        __vt.len(),
114                        <StringCollection as ::unity::ClassIdentity>::NAME,
115                        "Clear",
116                    )
117                });
118                let __inner: extern "C" fn(StringCollection, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
119                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
120                __inner(__receiver, __mi)
121            }
122        }
123    }
124    #[doc = "`Contains(::unity::Il2CppString)` overload"]
125    fn contains(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
126        unsafe {
127            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            ::unity::il2cpp_call!((::unity::module_base()+0x2a273d0usize)as*mut u8,bool;
129(StringCollection)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
130        }
131    }
132    #[doc = "`CopyTo(::unity::Array<::unity::Il2CppString>, i32)` overload"]
133    fn copy_to(self, array: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>, index: impl ::core::convert::Into<i32>) -> () {
134        unsafe {
135            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            ::unity::il2cpp_call!((::unity::module_base()+0x2a273f0usize)as*mut u8,();
137(StringCollection)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(array),(i32)::core::convert::Into::into(index))
138        }
139    }
140    #[doc = "`IndexOf(::unity::Il2CppString)` overload"]
141    fn index_of(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
142        unsafe {
143            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            ::unity::il2cpp_call!((::unity::module_base()+0x2a27410usize)as*mut u8,i32;
145(StringCollection)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
146        }
147    }
148    #[doc = "`Insert(i32, ::unity::Il2CppString)` overload"]
149    fn insert(self, index: impl ::core::convert::Into<i32>, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
150        unsafe {
151            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            ::unity::il2cpp_call!((::unity::module_base()+0x2a27430usize)as*mut u8,();
153(StringCollection)__receiver,(i32)::core::convert::Into::into(index),(::unity::Il2CppString)::core::convert::Into::into(value))
154        }
155    }
156    #[doc = "`get_IsSynchronized()` overload"]
157    fn get_is_synchronized(self) -> bool {
158        unsafe {
159            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160            {
161                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
162                let __vi = *__vt.get(17usize).unwrap_or_else(|| {
163                    panic!(
164                        "unity: virtual slot {}
165 out of range (vtable len {}
166) on the runtime class behind {}
167 (method `{}
168`)",
169                        17usize,
170                        __vt.len(),
171                        <StringCollection as ::unity::ClassIdentity>::NAME,
172                        "get_IsSynchronized",
173                    )
174                });
175                let __inner: extern "C" fn(StringCollection, ::unity::OptionalMethod) -> bool = ::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, __mi)
178            }
179        }
180    }
181    #[doc = "`Remove(::unity::Il2CppString)` overload"]
182    fn remove(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
183        unsafe {
184            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185            ::unity::il2cpp_call!((::unity::module_base()+0x2a27460usize)as*mut u8,();
186(StringCollection)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
187        }
188    }
189    #[doc = "`RemoveAt(i32)` overload"]
190    fn remove_at(self, index: impl ::core::convert::Into<i32>) -> () {
191        unsafe {
192            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193            {
194                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
195                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
196                    panic!(
197                        "unity: virtual slot {}
198 out of range (vtable len {}
199) on the runtime class behind {}
200 (method `{}
201`)",
202                        13usize,
203                        __vt.len(),
204                        <StringCollection as ::unity::ClassIdentity>::NAME,
205                        "RemoveAt",
206                    )
207                });
208                let __inner: extern "C" fn(StringCollection, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
209                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
210                __inner(__receiver, ::core::convert::Into::into(index), __mi)
211            }
212        }
213    }
214    #[doc = "`get_SyncRoot()` overload"]
215    fn get_sync_root(self) -> crate::system::object::Object {
216        unsafe {
217            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218            {
219                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
220                let __vi = *__vt.get(16usize).unwrap_or_else(|| {
221                    panic!(
222                        "unity: virtual slot {}
223 out of range (vtable len {}
224) on the runtime class behind {}
225 (method `{}
226`)",
227                        16usize,
228                        __vt.len(),
229                        <StringCollection as ::unity::ClassIdentity>::NAME,
230                        "get_SyncRoot",
231                    )
232                });
233                let __inner: extern "C" fn(StringCollection, ::unity::OptionalMethod) -> crate::system::object::Object =
234                    ::core::mem::transmute(__vi.method_ptr);
235                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
236                __inner(__receiver, __mi)
237            }
238        }
239    }
240    #[doc = "`System.Collections.IList.get_Item(i32)` overload"]
241    fn system_collections_i_list_get_item(self, index: impl ::core::convert::Into<i32>) -> crate::system::object::Object {
242        unsafe {
243            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
244            {
245                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
246                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
247                    panic!(
248                        "unity: virtual slot {}
249 out of range (vtable len {}
250) on the runtime class behind {}
251 (method `{}
252`)",
253                        4usize,
254                        __vt.len(),
255                        <StringCollection as ::unity::ClassIdentity>::NAME,
256                        "System.Collections.IList.get_Item",
257                    )
258                });
259                let __inner: extern "C" fn(StringCollection, i32, ::unity::OptionalMethod) -> crate::system::object::Object =
260                    ::core::mem::transmute(__vi.method_ptr);
261                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
262                __inner(__receiver, ::core::convert::Into::into(index), __mi)
263            }
264        }
265    }
266    #[doc = "`System.Collections.IList.set_Item(i32, crate::system::object::Object)` overload"]
267    fn system_collections_i_list_set_item(
268        self,
269        index: impl ::core::convert::Into<i32>,
270        value: impl ::core::convert::Into<crate::system::object::Object>,
271    ) -> () {
272        unsafe {
273            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274            {
275                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
276                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
277                    panic!(
278                        "unity: virtual slot {}
279 out of range (vtable len {}
280) on the runtime class behind {}
281 (method `{}
282`)",
283                        5usize,
284                        __vt.len(),
285                        <StringCollection as ::unity::ClassIdentity>::NAME,
286                        "System.Collections.IList.set_Item",
287                    )
288                });
289                let __inner: extern "C" fn(StringCollection, i32, crate::system::object::Object, ::unity::OptionalMethod) -> () =
290                    ::core::mem::transmute(__vi.method_ptr);
291                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
292                __inner(__receiver, ::core::convert::Into::into(index), ::core::convert::Into::into(value), __mi)
293            }
294        }
295    }
296    #[doc = "`System.Collections.IList.Add(crate::system::object::Object)` overload"]
297    fn system_collections_i_list_add(self, value: impl ::core::convert::Into<crate::system::object::Object>) -> i32 {
298        unsafe {
299            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
300            {
301                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
302                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
303                    panic!(
304                        "unity: virtual slot {}
305 out of range (vtable len {}
306) on the runtime class behind {}
307 (method `{}
308`)",
309                        6usize,
310                        __vt.len(),
311                        <StringCollection as ::unity::ClassIdentity>::NAME,
312                        "System.Collections.IList.Add",
313                    )
314                });
315                let __inner: extern "C" fn(StringCollection, crate::system::object::Object, ::unity::OptionalMethod) -> i32 =
316                    ::core::mem::transmute(__vi.method_ptr);
317                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
318                __inner(__receiver, ::core::convert::Into::into(value), __mi)
319            }
320        }
321    }
322    #[doc = "`System.Collections.IList.Contains(crate::system::object::Object)` overload"]
323    fn system_collections_i_list_contains(self, value: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
324        unsafe {
325            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
326            {
327                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
328                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
329                    panic!(
330                        "unity: virtual slot {}
331 out of range (vtable len {}
332) on the runtime class behind {}
333 (method `{}
334`)",
335                        7usize,
336                        __vt.len(),
337                        <StringCollection as ::unity::ClassIdentity>::NAME,
338                        "System.Collections.IList.Contains",
339                    )
340                });
341                let __inner: extern "C" fn(StringCollection, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
342                    ::core::mem::transmute(__vi.method_ptr);
343                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
344                __inner(__receiver, ::core::convert::Into::into(value), __mi)
345            }
346        }
347    }
348    #[doc = "`System.Collections.IList.IndexOf(crate::system::object::Object)` overload"]
349    fn system_collections_i_list_index_of(self, value: impl ::core::convert::Into<crate::system::object::Object>) -> i32 {
350        unsafe {
351            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
352            {
353                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
354                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
355                    panic!(
356                        "unity: virtual slot {}
357 out of range (vtable len {}
358) on the runtime class behind {}
359 (method `{}
360`)",
361                        10usize,
362                        __vt.len(),
363                        <StringCollection as ::unity::ClassIdentity>::NAME,
364                        "System.Collections.IList.IndexOf",
365                    )
366                });
367                let __inner: extern "C" fn(StringCollection, crate::system::object::Object, ::unity::OptionalMethod) -> i32 =
368                    ::core::mem::transmute(__vi.method_ptr);
369                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
370                __inner(__receiver, ::core::convert::Into::into(value), __mi)
371            }
372        }
373    }
374    #[doc = "`System.Collections.IList.Insert(i32, crate::system::object::Object)` overload"]
375    fn system_collections_i_list_insert(
376        self,
377        index: impl ::core::convert::Into<i32>,
378        value: impl ::core::convert::Into<crate::system::object::Object>,
379    ) -> () {
380        unsafe {
381            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
382            {
383                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
384                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
385                    panic!(
386                        "unity: virtual slot {}
387 out of range (vtable len {}
388) on the runtime class behind {}
389 (method `{}
390`)",
391                        11usize,
392                        __vt.len(),
393                        <StringCollection as ::unity::ClassIdentity>::NAME,
394                        "System.Collections.IList.Insert",
395                    )
396                });
397                let __inner: extern "C" fn(StringCollection, i32, crate::system::object::Object, ::unity::OptionalMethod) -> () =
398                    ::core::mem::transmute(__vi.method_ptr);
399                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
400                __inner(__receiver, ::core::convert::Into::into(index), ::core::convert::Into::into(value), __mi)
401            }
402        }
403    }
404    #[doc = "`System.Collections.IList.Remove(crate::system::object::Object)` overload"]
405    fn system_collections_i_list_remove(self, value: impl ::core::convert::Into<crate::system::object::Object>) -> () {
406        unsafe {
407            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
408            {
409                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
410                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
411                    panic!(
412                        "unity: virtual slot {}
413 out of range (vtable len {}
414) on the runtime class behind {}
415 (method `{}
416`)",
417                        12usize,
418                        __vt.len(),
419                        <StringCollection as ::unity::ClassIdentity>::NAME,
420                        "System.Collections.IList.Remove",
421                    )
422                });
423                let __inner: extern "C" fn(StringCollection, crate::system::object::Object, ::unity::OptionalMethod) -> () =
424                    ::core::mem::transmute(__vi.method_ptr);
425                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
426                __inner(__receiver, ::core::convert::Into::into(value), __mi)
427            }
428        }
429    }
430    #[doc = "`System.Collections.ICollection.CopyTo(::unity::IlInstance, i32)` overload"]
431    fn system_collections_i_collection_copy_to(
432        self,
433        array: impl ::core::convert::Into<::unity::IlInstance>,
434        index: impl ::core::convert::Into<i32>,
435    ) -> () {
436        unsafe {
437            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
438            {
439                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
440                let __vi = *__vt.get(14usize).unwrap_or_else(|| {
441                    panic!(
442                        "unity: virtual slot {}
443 out of range (vtable len {}
444) on the runtime class behind {}
445 (method `{}
446`)",
447                        14usize,
448                        __vt.len(),
449                        <StringCollection as ::unity::ClassIdentity>::NAME,
450                        "System.Collections.ICollection.CopyTo",
451                    )
452                });
453                let __inner: extern "C" fn(StringCollection, ::unity::IlInstance, i32, ::unity::OptionalMethod) -> () =
454                    ::core::mem::transmute(__vi.method_ptr);
455                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
456                __inner(__receiver, ::core::convert::Into::into(array), ::core::convert::Into::into(index), __mi)
457            }
458        }
459    }
460    #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
461    fn system_collections_i_enumerable_get_enumerator(self) -> crate::system::collections::ienumerator::IEnumerator {
462        unsafe {
463            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
464            {
465                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
466                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
467                    panic!(
468                        "unity: virtual slot {}
469 out of range (vtable len {}
470) on the runtime class behind {}
471 (method `{}
472`)",
473                        18usize,
474                        __vt.len(),
475                        <StringCollection as ::unity::ClassIdentity>::NAME,
476                        "System.Collections.IEnumerable.GetEnumerator",
477                    )
478                });
479                let __inner: extern "C" fn(StringCollection, ::unity::OptionalMethod) -> crate::system::collections::ienumerator::IEnumerator =
480                    ::core::mem::transmute(__vi.method_ptr);
481                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
482                __inner(__receiver, __mi)
483            }
484        }
485    }
486    #[doc = "`.ctor()` overload"]
487    fn ctor(self) -> () {
488        unsafe {
489            let __receiver = <StringCollection as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
490            ::unity::il2cpp_call!((::unity::module_base()+0x2a278a0usize)as*mut u8,();
491(StringCollection)__receiver)
492        }
493    }
494}
495
496#[cfg(feature = "system-collections-specialized-stringcollection")]
497impl<__T: IStringCollection> IStringCollectionMethods for __T {}
498
499#[cfg(feature = "system-collections-specialized-stringcollection")]
500impl StringCollection {
501    pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
502        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
503    }
504
505    pub fn set_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
506        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
507    }
508
509    pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
510        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
511    }
512
513    pub fn system_collections_i_list_get_is_read_only_method_info() -> &'static ::unity::il2cpp::MethodInfo {
514        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
515    }
516
517    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
518        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
519    }
520
521    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
522        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
523    }
524
525    pub fn contains_method_info() -> &'static ::unity::il2cpp::MethodInfo {
526        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
527    }
528
529    pub fn copy_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
530        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
531    }
532
533    pub fn index_of_method_info() -> &'static ::unity::il2cpp::MethodInfo {
534        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
535    }
536
537    pub fn insert_method_info() -> &'static ::unity::il2cpp::MethodInfo {
538        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
539    }
540
541    pub fn get_is_synchronized_method_info() -> &'static ::unity::il2cpp::MethodInfo {
542        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
543    }
544
545    pub fn remove_method_info() -> &'static ::unity::il2cpp::MethodInfo {
546        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
547    }
548
549    pub fn remove_at_method_info() -> &'static ::unity::il2cpp::MethodInfo {
550        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
551    }
552
553    pub fn get_sync_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
554        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
555    }
556
557    pub fn system_collections_i_list_get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
558        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
559    }
560
561    pub fn system_collections_i_list_set_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
562        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
563    }
564
565    pub fn system_collections_i_list_add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
566        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
567    }
568
569    pub fn system_collections_i_list_contains_method_info() -> &'static ::unity::il2cpp::MethodInfo {
570        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
571    }
572
573    pub fn system_collections_i_list_index_of_method_info() -> &'static ::unity::il2cpp::MethodInfo {
574        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
575    }
576
577    pub fn system_collections_i_list_insert_method_info() -> &'static ::unity::il2cpp::MethodInfo {
578        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
579    }
580
581    pub fn system_collections_i_list_remove_method_info() -> &'static ::unity::il2cpp::MethodInfo {
582        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
583    }
584
585    pub fn system_collections_i_collection_copy_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
586        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
587    }
588
589    pub fn system_collections_i_enumerable_get_enumerator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
590        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
591    }
592
593    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
594        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
595    }
596}
597
598#[cfg(feature = "system-collections-specialized-stringcollection")]
599impl StringCollection {
600    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `get_Count`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
601    pub unsafe fn get_count(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
602        let __mi = Self::get_count_method_info();
603        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
604        __inner(this.into(), ::core::option::Option::None)
605    }
606
607    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `System.Collections.IList.get_IsReadOnly`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
608    pub unsafe fn system_collections_i_list_get_is_read_only(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
609        let __mi = Self::system_collections_i_list_get_is_read_only_method_info();
610        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
611        __inner(this.into(), ::core::option::Option::None)
612    }
613
614    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `Clear`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
615    pub unsafe fn clear(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
616        let __mi = Self::clear_method_info();
617        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
618        __inner(this.into(), ::core::option::Option::None)
619    }
620
621    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `get_IsSynchronized`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
622    pub unsafe fn get_is_synchronized(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
623        let __mi = Self::get_is_synchronized_method_info();
624        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
625        __inner(this.into(), ::core::option::Option::None)
626    }
627
628    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `RemoveAt`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
629    pub unsafe fn remove_at(this: impl ::core::convert::Into<::unity::IlInstance>, index: i32) -> () {
630        let __mi = Self::remove_at_method_info();
631        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
632        __inner(this.into(), index, ::core::option::Option::None)
633    }
634
635    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `get_SyncRoot`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
636    pub unsafe fn get_sync_root(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
637        let __mi = Self::get_sync_root_method_info();
638        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
639            ::core::mem::transmute(__mi.method_ptr);
640        __inner(this.into(), ::core::option::Option::None)
641    }
642
643    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `System.Collections.IList.get_Item`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
644    pub unsafe fn system_collections_i_list_get_item(
645        this: impl ::core::convert::Into<::unity::IlInstance>,
646        index: i32,
647    ) -> crate::system::object::Object {
648        let __mi = Self::system_collections_i_list_get_item_method_info();
649        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> crate::system::object::Object =
650            ::core::mem::transmute(__mi.method_ptr);
651        __inner(this.into(), index, ::core::option::Option::None)
652    }
653
654    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `System.Collections.IList.set_Item`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
655    pub unsafe fn system_collections_i_list_set_item(
656        this: impl ::core::convert::Into<::unity::IlInstance>,
657        index: i32,
658        value: crate::system::object::Object,
659    ) -> () {
660        let __mi = Self::system_collections_i_list_set_item_method_info();
661        let __inner: extern "C" fn(::unity::IlInstance, i32, crate::system::object::Object, ::unity::OptionalMethod) -> () =
662            ::core::mem::transmute(__mi.method_ptr);
663        __inner(this.into(), index, value, ::core::option::Option::None)
664    }
665
666    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `System.Collections.IList.Add`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
667    pub unsafe fn system_collections_i_list_add(this: impl ::core::convert::Into<::unity::IlInstance>, value: crate::system::object::Object) -> i32 {
668        let __mi = Self::system_collections_i_list_add_method_info();
669        let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> i32 =
670            ::core::mem::transmute(__mi.method_ptr);
671        __inner(this.into(), value, ::core::option::Option::None)
672    }
673
674    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `System.Collections.IList.Contains`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
675    pub unsafe fn system_collections_i_list_contains(
676        this: impl ::core::convert::Into<::unity::IlInstance>,
677        value: crate::system::object::Object,
678    ) -> bool {
679        let __mi = Self::system_collections_i_list_contains_method_info();
680        let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
681            ::core::mem::transmute(__mi.method_ptr);
682        __inner(this.into(), value, ::core::option::Option::None)
683    }
684
685    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `System.Collections.IList.IndexOf`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
686    pub unsafe fn system_collections_i_list_index_of(
687        this: impl ::core::convert::Into<::unity::IlInstance>,
688        value: crate::system::object::Object,
689    ) -> i32 {
690        let __mi = Self::system_collections_i_list_index_of_method_info();
691        let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> i32 =
692            ::core::mem::transmute(__mi.method_ptr);
693        __inner(this.into(), value, ::core::option::Option::None)
694    }
695
696    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `System.Collections.IList.Insert`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
697    pub unsafe fn system_collections_i_list_insert(
698        this: impl ::core::convert::Into<::unity::IlInstance>,
699        index: i32,
700        value: crate::system::object::Object,
701    ) -> () {
702        let __mi = Self::system_collections_i_list_insert_method_info();
703        let __inner: extern "C" fn(::unity::IlInstance, i32, crate::system::object::Object, ::unity::OptionalMethod) -> () =
704            ::core::mem::transmute(__mi.method_ptr);
705        __inner(this.into(), index, value, ::core::option::Option::None)
706    }
707
708    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `System.Collections.IList.Remove`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
709    pub unsafe fn system_collections_i_list_remove(
710        this: impl ::core::convert::Into<::unity::IlInstance>,
711        value: crate::system::object::Object,
712    ) -> () {
713        let __mi = Self::system_collections_i_list_remove_method_info();
714        let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> () =
715            ::core::mem::transmute(__mi.method_ptr);
716        __inner(this.into(), value, ::core::option::Option::None)
717    }
718
719    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `System.Collections.ICollection.CopyTo`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
720    pub unsafe fn system_collections_i_collection_copy_to(
721        this: impl ::core::convert::Into<::unity::IlInstance>,
722        array: ::unity::IlInstance,
723        index: i32,
724    ) -> () {
725        let __mi = Self::system_collections_i_collection_copy_to_method_info();
726        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IlInstance, i32, ::unity::OptionalMethod) -> () =
727            ::core::mem::transmute(__mi.method_ptr);
728        __inner(this.into(), array, index, ::core::option::Option::None)
729    }
730
731    #[doc = "Direct (non-virtual) call to `StringCollection`'s own `System.Collections.IEnumerable.GetEnumerator`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
732    pub unsafe fn system_collections_i_enumerable_get_enumerator(
733        this: impl ::core::convert::Into<::unity::IlInstance>,
734    ) -> crate::system::collections::ienumerator::IEnumerator {
735        let __mi = Self::system_collections_i_enumerable_get_enumerator_method_info();
736        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::collections::ienumerator::IEnumerator =
737            ::core::mem::transmute(__mi.method_ptr);
738        __inner(this.into(), ::core::option::Option::None)
739    }
740}
741
742#[cfg(feature = "system-collections-specialized-stringcollection")]
743impl StringCollection {
744    #[doc = "`.ctor()` — no args"]
745    pub fn new() -> Self {
746        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
747            panic!(
748                "{}
749::{}
750 failed to instantiate",
751                ::core::stringify!(StringCollection),
752                ::core::stringify!(new),
753            )
754        });
755        <Self as IStringCollectionMethods>::ctor(this);
756        this
757    }
758}
759
760#[cfg(feature = "system-collections-specialized-stringcollection")]
761#[doc(hidden)]
762pub mod prelude {
763    pub use super::{IStringCollection, IStringCollectionMethods, StringCollection};
764    pub use crate::system::object::IObject;
765    #[cfg(feature = "system-object")]
766    pub use crate::system::object::IObjectMethods;
767}