1#[cfg(feature = "moon_sharp-interpreter-interop-user_data_registries-extensionmethodsregistry-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/moon_sharp/interpreter/interop/user_data_registries/extensionmethodsregistry/ExtensionMethodsRegistry_UnresolvedGenericMethod.md"))]
11 #[::unity::class(
12 namespace = "MoonSharp.Interpreter.Interop.UserDataRegistries",
13 name = "ExtensionMethodsRegistry.UnresolvedGenericMethod"
14 )]
15 #[parent(crate::system::object::Object)]
16 pub struct ExtensionMethodsRegistry_UnresolvedGenericMethod {
17 #[offset(16)]
18 #[rename(name = "Method")]
19 pub method: crate::system::reflection::methodinfo::MethodInfo,
20 #[offset(24)]
21 #[rename(name = "AccessMode")]
22 pub access_mode: crate::moon_sharp::interpreter::interopaccessmode::InteropAccessMode,
23 #[offset(32)]
24 #[rename(name = "AlreadyAddedTypes")]
25 pub already_added_types: crate::system::collections::generic::hashset_1::HashSet_1<::unity::SystemType>,
26 }
27
28 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/interop/user_data_registries/extensionmethodsregistry/ExtensionMethodsRegistry.md"))]
29 #[::unity::class(namespace = "MoonSharp.Interpreter.Interop.UserDataRegistries", name = "ExtensionMethodsRegistry")]
30 #[parent(crate::system::object::Object)]
31 pub struct ExtensionMethodsRegistry {
32 #[static_field]
33 #[rename(name = "s_Lock")]
34 pub s_lock: ::unity::IlInstance,
35 #[static_field]
36 #[rename(name = "s_Registry")]
37 pub s_registry: crate::moon_sharp::interpreter::data_structs::multidictionary_2::MultiDictionary_2<
38 ::unity::Il2CppString,
39 crate::moon_sharp::interpreter::interop::basic_descriptors::ioverloadablememberdescriptor::IOverloadableMemberDescriptor,
40 >,
41 #[static_field]
42 #[rename(name = "s_UnresolvedGenericsRegistry")]
43 pub s_unresolved_generics_registry: crate::moon_sharp::interpreter::data_structs::multidictionary_2::MultiDictionary_2<
44 ::unity::Il2CppString,
45 crate::moon_sharp::interpreter::interop::user_data_registries::extensionmethodsregistry::ExtensionMethodsRegistry_UnresolvedGenericMethod,
46 >,
47 #[static_field]
48 #[rename(name = "s_ExtensionMethodChangeVersion")]
49 pub s_extension_method_change_version: i32,
50 }
51}
52
53#[cfg(feature = "moon_sharp-interpreter-interop-user_data_registries-extensionmethodsregistry-types")]
54pub use __types::*;
55
56#[cfg(feature = "moon_sharp-interpreter-interop-user_data_registries-extensionmethodsregistry")]
57#[doc(hidden)]
58#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
59mod __ExtensionMethodsRegistry_UnresolvedGenericMethod_unity_raw {
60 use super::*;
61 #[doc(hidden)]
62 #[allow(non_snake_case)]
63 pub mod __lookup_ctor {
64 use super::*;
65 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
66 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
67 <crate::system::reflection::methodinfo::MethodInfo as ::unity::IlType>::il_type(),
68 <crate::moon_sharp::interpreter::interopaccessmode::InteropAccessMode as ::unity::IlType>::il_type(),
69 ];
70 ::unity::lookup::method_info_on_class_with_signature(
71 <ExtensionMethodsRegistry_UnresolvedGenericMethod as ::unity::ClassIdentity>::class(),
72 ".ctor",
73 2,
74 param_types,
75 false,
76 )
77 });
78 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79 match &*METHOD {
80 ::core::result::Result::Ok(mi) => *mi,
81 ::core::result::Result::Err(e) => {
82 panic!(
83 "method lookup failed: {}
84::{}
85: {}
86",
87 <ExtensionMethodsRegistry_UnresolvedGenericMethod as ::unity::ClassIdentity>::NAME,
88 ".ctor",
89 e
90 )
91 },
92 }
93 }
94 }
95}
96
97#[cfg(feature = "moon_sharp-interpreter-interop-user_data_registries-extensionmethodsregistry")]
98pub trait IExtensionMethodsRegistry_UnresolvedGenericMethodMethods: IExtensionMethodsRegistry_UnresolvedGenericMethod {
99 #[doc = "`.ctor(crate::system::reflection::methodinfo::MethodInfo, crate::moon_sharp::interpreter::interopaccessmode::InteropAccessMode)` overload"]
100 fn ctor(
101 self,
102 mi: impl ::core::convert::Into<crate::system::reflection::methodinfo::MethodInfo>,
103 mode: impl ::core::convert::Into<crate::moon_sharp::interpreter::interopaccessmode::InteropAccessMode>,
104 ) -> () {
105 unsafe {
106 let __receiver = <ExtensionMethodsRegistry_UnresolvedGenericMethod as ::unity::FromIlInstance>::from_il_instance(
107 <Self as ::unity::SystemObject>::as_instance(self),
108 );
109 ::unity::il2cpp_call!(__ExtensionMethodsRegistry_UnresolvedGenericMethod_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
110(ExtensionMethodsRegistry_UnresolvedGenericMethod)__receiver,(crate::system::reflection::methodinfo::MethodInfo)::core::convert::Into::into(mi),(crate::moon_sharp::interpreter::interopaccessmode::InteropAccessMode)::core::convert::Into::into(mode))
111 }
112 }
113}
114
115#[cfg(feature = "moon_sharp-interpreter-interop-user_data_registries-extensionmethodsregistry")]
116impl<__T: IExtensionMethodsRegistry_UnresolvedGenericMethod> IExtensionMethodsRegistry_UnresolvedGenericMethodMethods for __T {}
117
118#[cfg(feature = "moon_sharp-interpreter-interop-user_data_registries-extensionmethodsregistry")]
119impl ExtensionMethodsRegistry_UnresolvedGenericMethod {
120 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
122 }
123}
124
125#[cfg(feature = "moon_sharp-interpreter-interop-user_data_registries-extensionmethodsregistry")]
126impl ExtensionMethodsRegistry_UnresolvedGenericMethod {
127 #[doc = "`.ctor(crate::system::reflection::methodinfo::MethodInfo, crate::moon_sharp::interpreter::interopaccessmode::InteropAccessMode)` — overload selector"]
128 pub fn new(
129 mi: crate::system::reflection::methodinfo::MethodInfo,
130 mode: crate::moon_sharp::interpreter::interopaccessmode::InteropAccessMode,
131 ) -> Self {
132 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
133 panic!(
134 "{}
135::{}
136 failed to instantiate",
137 ::core::stringify!(ExtensionMethodsRegistry_UnresolvedGenericMethod),
138 ::core::stringify!(new),
139 )
140 });
141 <Self as IExtensionMethodsRegistry_UnresolvedGenericMethodMethods>::ctor(this, mi, mode);
142 this
143 }
144}
145
146#[cfg(feature = "moon_sharp-interpreter-interop-user_data_registries-extensionmethodsregistry")]
147#[doc(hidden)]
148#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
149mod __ExtensionMethodsRegistry_unity_raw {
150 use super::*;
151 #[doc(hidden)]
152 #[allow(non_snake_case)]
153 pub mod __lookup_register_extension_type {
154 use super::*;
155 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
156 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
157 <::unity::SystemType as ::unity::IlType>::il_type(),
158 <crate::moon_sharp::interpreter::interopaccessmode::InteropAccessMode as ::unity::IlType>::il_type(),
159 ];
160 ::unity::lookup::method_info_on_class_with_signature(
161 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::class(),
162 "RegisterExtensionType",
163 2,
164 param_types,
165 true,
166 )
167 });
168 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169 match &*METHOD {
170 ::core::result::Result::Ok(mi) => *mi,
171 ::core::result::Result::Err(e) => {
172 panic!(
173 "method lookup failed: {}
174::{}
175: {}
176",
177 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::NAME,
178 "RegisterExtensionType",
179 e
180 )
181 },
182 }
183 }
184 }
185 #[doc(hidden)]
186 #[allow(non_snake_case)]
187 pub mod __lookup_framework_get_methods {
188 use super::*;
189 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
190 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
191 ::unity::lookup::method_info_on_class_with_signature(
192 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::class(),
193 "FrameworkGetMethods",
194 0,
195 param_types,
196 true,
197 )
198 });
199 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 match &*METHOD {
201 ::core::result::Result::Ok(mi) => *mi,
202 ::core::result::Result::Err(e) => {
203 panic!(
204 "method lookup failed: {}
205::{}
206: {}
207",
208 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::NAME,
209 "FrameworkGetMethods",
210 e
211 )
212 },
213 }
214 }
215 }
216 #[doc(hidden)]
217 #[allow(non_snake_case)]
218 pub mod __lookup_get_extension_methods_by_name {
219 use super::*;
220 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
221 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<::unity::Il2CppString as ::unity::IlType>::il_type()];
222 ::unity::lookup::method_info_on_class_with_signature(
223 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::class(),
224 "GetExtensionMethodsByName",
225 1,
226 param_types,
227 true,
228 )
229 });
230 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 match &*METHOD {
232 ::core::result::Result::Ok(mi) => *mi,
233 ::core::result::Result::Err(e) => {
234 panic!(
235 "method lookup failed: {}
236::{}
237: {}
238",
239 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::NAME,
240 "GetExtensionMethodsByName",
241 e
242 )
243 },
244 }
245 }
246 }
247 #[doc(hidden)]
248 #[allow(non_snake_case)]
249 pub mod __lookup_get_extension_methods_change_version {
250 use super::*;
251 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
252 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
253 ::unity::lookup::method_info_on_class_with_signature(
254 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::class(),
255 "GetExtensionMethodsChangeVersion",
256 0,
257 param_types,
258 true,
259 )
260 });
261 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262 match &*METHOD {
263 ::core::result::Result::Ok(mi) => *mi,
264 ::core::result::Result::Err(e) => {
265 panic!(
266 "method lookup failed: {}
267::{}
268: {}
269",
270 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::NAME,
271 "GetExtensionMethodsChangeVersion",
272 e
273 )
274 },
275 }
276 }
277 }
278 #[doc(hidden)]
279 #[allow(non_snake_case)]
280 pub mod __lookup_get_extension_methods_by_name_and_type {
281 use super::*;
282 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
283 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
284 <::unity::Il2CppString as ::unity::IlType>::il_type(),
285 <::unity::SystemType as ::unity::IlType>::il_type(),
286 ];
287 ::unity::lookup::method_info_on_class_with_signature(
288 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::class(),
289 "GetExtensionMethodsByNameAndType",
290 2,
291 param_types,
292 true,
293 )
294 });
295 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296 match &*METHOD {
297 ::core::result::Result::Ok(mi) => *mi,
298 ::core::result::Result::Err(e) => {
299 panic!(
300 "method lookup failed: {}
301::{}
302: {}
303",
304 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::NAME,
305 "GetExtensionMethodsByNameAndType",
306 e
307 )
308 },
309 }
310 }
311 }
312 #[doc(hidden)]
313 #[allow(non_snake_case)]
314 pub mod __lookup_instantiate_method_info {
315 use super::*;
316 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
317 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
318 <crate::system::reflection::methodinfo::MethodInfo as ::unity::IlType>::il_type(),
319 <::unity::SystemType as ::unity::IlType>::il_type(),
320 <::unity::SystemType as ::unity::IlType>::il_type(),
321 <::unity::SystemType as ::unity::IlType>::il_type(),
322 ];
323 ::unity::lookup::method_info_on_class_with_signature(
324 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::class(),
325 "InstantiateMethodInfo",
326 4,
327 param_types,
328 true,
329 )
330 });
331 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
332 match &*METHOD {
333 ::core::result::Result::Ok(mi) => *mi,
334 ::core::result::Result::Err(e) => {
335 panic!(
336 "method lookup failed: {}
337::{}
338: {}
339",
340 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::NAME,
341 "InstantiateMethodInfo",
342 e
343 )
344 },
345 }
346 }
347 }
348 #[doc(hidden)]
349 #[allow(non_snake_case)]
350 pub mod __lookup_get_generic_match {
351 use super::*;
352 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
353 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[
354 <::unity::SystemType as ::unity::IlType>::il_type(),
355 <::unity::SystemType as ::unity::IlType>::il_type(),
356 ];
357 ::unity::lookup::method_info_on_class_with_signature(
358 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::class(),
359 "GetGenericMatch",
360 2,
361 param_types,
362 true,
363 )
364 });
365 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366 match &*METHOD {
367 ::core::result::Result::Ok(mi) => *mi,
368 ::core::result::Result::Err(e) => {
369 panic!(
370 "method lookup failed: {}
371::{}
372: {}
373",
374 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::NAME,
375 "GetGenericMatch",
376 e
377 )
378 },
379 }
380 }
381 }
382 #[doc(hidden)]
383 #[allow(non_snake_case)]
384 pub mod __lookup_ctor {
385 use super::*;
386 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
387 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
388 ::unity::lookup::method_info_on_class_with_signature(
389 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::class(),
390 ".ctor",
391 0,
392 param_types,
393 false,
394 )
395 });
396 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397 match &*METHOD {
398 ::core::result::Result::Ok(mi) => *mi,
399 ::core::result::Result::Err(e) => {
400 panic!(
401 "method lookup failed: {}
402::{}
403: {}
404",
405 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::NAME,
406 ".ctor",
407 e
408 )
409 },
410 }
411 }
412 }
413 #[doc(hidden)]
414 #[allow(non_snake_case)]
415 pub mod __lookup_cctor {
416 use super::*;
417 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
418 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
419 ::unity::lookup::method_info_on_class_with_signature(
420 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::class(),
421 ".cctor",
422 0,
423 param_types,
424 true,
425 )
426 });
427 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428 match &*METHOD {
429 ::core::result::Result::Ok(mi) => *mi,
430 ::core::result::Result::Err(e) => {
431 panic!(
432 "method lookup failed: {}
433::{}
434: {}
435",
436 <ExtensionMethodsRegistry as ::unity::ClassIdentity>::NAME,
437 ".cctor",
438 e
439 )
440 },
441 }
442 }
443 }
444}
445
446#[cfg(feature = "moon_sharp-interpreter-interop-user_data_registries-extensionmethodsregistry")]
447impl ExtensionMethodsRegistry {
448 #[doc = "`RegisterExtensionType(::unity::SystemType, crate::moon_sharp::interpreter::interopaccessmode::InteropAccessMode)` overload"]
449 pub fn register_extension_type(
450 r#type: impl ::core::convert::Into<::unity::SystemType>,
451 mode: impl ::core::convert::Into<crate::moon_sharp::interpreter::interopaccessmode::InteropAccessMode>,
452 ) -> () {
453 unsafe {
454 ::unity::il2cpp_call!(__ExtensionMethodsRegistry_unity_raw::__lookup_register_extension_type::get_method_info().method_ptr,();
455(::unity::SystemType)::core::convert::Into::into(r#type),(crate::moon_sharp::interpreter::interopaccessmode::InteropAccessMode)::core::convert::Into::into(mode))
456 }
457 }
458
459 #[doc = "`FrameworkGetMethods()` overload"]
460 pub fn framework_get_methods() -> crate::system::object::Object {
461 unsafe {
462 ::unity::il2cpp_call!(__ExtensionMethodsRegistry_unity_raw::__lookup_framework_get_methods::get_method_info().method_ptr,crate::system::object::Object;
463 )
464 }
465 }
466
467 #[doc = "`GetExtensionMethodsByName(::unity::Il2CppString)` overload"]
468 pub fn get_extension_methods_by_name(
469 name: impl ::core::convert::Into<::unity::Il2CppString>,
470 ) -> crate::system::collections::generic::ienumerable_1::IEnumerable_1<
471 crate::moon_sharp::interpreter::interop::basic_descriptors::ioverloadablememberdescriptor::IOverloadableMemberDescriptor,
472 > {
473 unsafe {
474 ::unity::il2cpp_call!(__ExtensionMethodsRegistry_unity_raw::__lookup_get_extension_methods_by_name::get_method_info().method_ptr,crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::moon_sharp::interpreter::interop::basic_descriptors::ioverloadablememberdescriptor::IOverloadableMemberDescriptor> ;
475(::unity::Il2CppString)::core::convert::Into::into(name))
476 }
477 }
478
479 #[doc = "`GetExtensionMethodsChangeVersion()` overload"]
480 pub fn get_extension_methods_change_version() -> i32 {
481 unsafe {
482 ::unity::il2cpp_call!(__ExtensionMethodsRegistry_unity_raw::__lookup_get_extension_methods_change_version::get_method_info().method_ptr,i32;
483 )
484 }
485 }
486
487 #[doc = "`GetExtensionMethodsByNameAndType(::unity::Il2CppString, ::unity::SystemType)` overload"]
488 pub fn get_extension_methods_by_name_and_type(
489 name: impl ::core::convert::Into<::unity::Il2CppString>,
490 extended_type: impl ::core::convert::Into<::unity::SystemType>,
491 ) -> crate::system::collections::generic::list_1::List_1<
492 crate::moon_sharp::interpreter::interop::basic_descriptors::ioverloadablememberdescriptor::IOverloadableMemberDescriptor,
493 > {
494 unsafe {
495 ::unity::il2cpp_call!(__ExtensionMethodsRegistry_unity_raw::__lookup_get_extension_methods_by_name_and_type::get_method_info().method_ptr,crate::system::collections::generic::list_1::List_1<crate::moon_sharp::interpreter::interop::basic_descriptors::ioverloadablememberdescriptor::IOverloadableMemberDescriptor> ;
496(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::SystemType)::core::convert::Into::into(extended_type))
497 }
498 }
499
500 #[doc = "`InstantiateMethodInfo(crate::system::reflection::methodinfo::MethodInfo, ::unity::SystemType, ::unity::SystemType, ::unity::SystemType)` overload"]
501 pub fn instantiate_method_info(
502 mi: impl ::core::convert::Into<crate::system::reflection::methodinfo::MethodInfo>,
503 extension_type: impl ::core::convert::Into<::unity::SystemType>,
504 generic_type: impl ::core::convert::Into<::unity::SystemType>,
505 extended_type: impl ::core::convert::Into<::unity::SystemType>,
506 ) -> crate::system::reflection::methodinfo::MethodInfo {
507 unsafe {
508 ::unity::il2cpp_call!(__ExtensionMethodsRegistry_unity_raw::__lookup_instantiate_method_info::get_method_info().method_ptr,crate::system::reflection::methodinfo::MethodInfo;
509(crate::system::reflection::methodinfo::MethodInfo)::core::convert::Into::into(mi),(::unity::SystemType)::core::convert::Into::into(extension_type),(::unity::SystemType)::core::convert::Into::into(generic_type),(::unity::SystemType)::core::convert::Into::into(extended_type))
510 }
511 }
512
513 #[doc = "`GetGenericMatch(::unity::SystemType, ::unity::SystemType)` overload"]
514 pub fn get_generic_match(
515 extension_type: impl ::core::convert::Into<::unity::SystemType>,
516 extended_type: impl ::core::convert::Into<::unity::SystemType>,
517 ) -> ::unity::SystemType {
518 unsafe {
519 ::unity::il2cpp_call!(__ExtensionMethodsRegistry_unity_raw::__lookup_get_generic_match::get_method_info().method_ptr, ::unity::SystemType;
520(::unity::SystemType)::core::convert::Into::into(extension_type),(::unity::SystemType)::core::convert::Into::into(extended_type))
521 }
522 }
523
524 #[doc = "`.cctor()` overload"]
525 pub fn cctor() -> () {
526 unsafe {
527 ::unity::il2cpp_call!(__ExtensionMethodsRegistry_unity_raw::__lookup_cctor::get_method_info().method_ptr,();
528 )
529 }
530 }
531}
532
533#[cfg(feature = "moon_sharp-interpreter-interop-user_data_registries-extensionmethodsregistry")]
534pub trait IExtensionMethodsRegistryMethods: IExtensionMethodsRegistry {
535 #[doc = "`.ctor()` overload"]
536 fn ctor(self) -> () {
537 unsafe {
538 let __receiver =
539 <ExtensionMethodsRegistry as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
540 ::unity::il2cpp_call!(__ExtensionMethodsRegistry_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
541(ExtensionMethodsRegistry)__receiver)
542 }
543 }
544}
545
546#[cfg(feature = "moon_sharp-interpreter-interop-user_data_registries-extensionmethodsregistry")]
547impl<__T: IExtensionMethodsRegistry> IExtensionMethodsRegistryMethods for __T {}
548
549#[cfg(feature = "moon_sharp-interpreter-interop-user_data_registries-extensionmethodsregistry")]
550impl ExtensionMethodsRegistry {
551 pub fn register_extension_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
552 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
553 }
554
555 pub fn framework_get_methods_method_info() -> &'static ::unity::il2cpp::MethodInfo {
556 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
557 }
558
559 pub fn get_extension_methods_by_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
560 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
561 }
562
563 pub fn get_extension_methods_change_version_method_info() -> &'static ::unity::il2cpp::MethodInfo {
564 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
565 }
566
567 pub fn get_extension_methods_by_name_and_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
568 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
569 }
570
571 pub fn instantiate_method_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
572 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
573 }
574
575 pub fn get_generic_match_method_info() -> &'static ::unity::il2cpp::MethodInfo {
576 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
577 }
578
579 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
580 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
581 }
582
583 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
584 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
585 }
586}
587
588#[cfg(feature = "moon_sharp-interpreter-interop-user_data_registries-extensionmethodsregistry")]
589impl ExtensionMethodsRegistry {
590 #[doc = "`.ctor()` — no args"]
591 pub fn new() -> Self {
592 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
593 panic!(
594 "{}
595::{}
596 failed to instantiate",
597 ::core::stringify!(ExtensionMethodsRegistry),
598 ::core::stringify!(new),
599 )
600 });
601 <Self as IExtensionMethodsRegistryMethods>::ctor(this);
602 this
603 }
604}
605
606#[cfg(feature = "moon_sharp-interpreter-interop-user_data_registries-extensionmethodsregistry")]
607#[doc(hidden)]
608pub mod prelude {
609 pub use super::{
610 ExtensionMethodsRegistry, ExtensionMethodsRegistry_UnresolvedGenericMethod, IExtensionMethodsRegistry, IExtensionMethodsRegistryMethods,
611 IExtensionMethodsRegistry_UnresolvedGenericMethod, IExtensionMethodsRegistry_UnresolvedGenericMethodMethods,
612 };
613 pub use crate::system::object::IObject;
614 #[cfg(feature = "system-object")]
615 pub use crate::system::object::IObjectMethods;
616}