1#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkreflectionbase-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 moon_sharp::interpreter::compatibility::frameworks::frameworkbase::{FrameworkBase, IFrameworkBase},
10 system::object::{IObject, Object},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/compatibility/frameworks/frameworkreflectionbase/FrameworkReflectionBase.md"))]
14 #[::unity::class(namespace = "MoonSharp.Interpreter.Compatibility.Frameworks", name = "FrameworkReflectionBase")]
15 #[parent(crate::moon_sharp::interpreter::compatibility::frameworks::frameworkbase::FrameworkBase)]
16 pub struct FrameworkReflectionBase {}
17}
18
19#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkreflectionbase-types")]
20pub use __types::*;
21
22#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkreflectionbase")]
23#[doc(hidden)]
24#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
25mod __FrameworkReflectionBase_unity_raw {
26 use super::*;
27 #[doc(hidden)]
28 #[allow(non_snake_case)]
29 pub mod __lookup_ctor {
30 use super::*;
31 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
32 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
33 ::unity::lookup::method_info_on_class_with_signature(
34 <FrameworkReflectionBase as ::unity::ClassIdentity>::class(),
35 ".ctor",
36 0,
37 param_types,
38 false,
39 )
40 });
41 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
42 match &*METHOD {
43 ::core::result::Result::Ok(mi) => *mi,
44 ::core::result::Result::Err(e) => {
45 panic!(
46 "method lookup failed: {}
47::{}
48: {}
49",
50 <FrameworkReflectionBase as ::unity::ClassIdentity>::NAME,
51 ".ctor",
52 e
53 )
54 },
55 }
56 }
57 }
58}
59
60#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkreflectionbase")]
61pub trait IFrameworkReflectionBaseMethods: IFrameworkReflectionBase {
62 #[doc = "`GetTypeInfoFromType(::unity::SystemType)` overload"]
63 fn get_type_info_from_type(self, t: impl ::core::convert::Into<::unity::SystemType>) -> ::unity::SystemType {
64 unsafe {
65 let __receiver =
66 <FrameworkReflectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67 {
68 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
69 let __vi = *__vt.get(36usize).unwrap_or_else(|| {
70 panic!(
71 "unity: virtual slot {}
72 out of range (vtable len {}
73) on the runtime class behind {}
74 (method `{}
75`)",
76 36usize,
77 __vt.len(),
78 <FrameworkReflectionBase as ::unity::ClassIdentity>::NAME,
79 "GetTypeInfoFromType",
80 )
81 });
82 let __inner: extern "C" fn(FrameworkReflectionBase, ::unity::SystemType, ::unity::OptionalMethod) -> ::unity::SystemType =
83 ::core::mem::transmute(__vi.method_ptr);
84 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
85 __inner(__receiver, ::core::convert::Into::into(t), __mi)
86 }
87 }
88 }
89 #[doc = "`GetAssembly(::unity::SystemType)` overload"]
90 fn get_assembly(self, t: impl ::core::convert::Into<::unity::SystemType>) -> crate::system::reflection::assembly::Assembly {
91 unsafe {
92 let __receiver =
93 <FrameworkReflectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94 {
95 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
96 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
97 panic!(
98 "unity: virtual slot {}
99 out of range (vtable len {}
100) on the runtime class behind {}
101 (method `{}
102`)",
103 6usize,
104 __vt.len(),
105 <FrameworkReflectionBase as ::unity::ClassIdentity>::NAME,
106 "GetAssembly",
107 )
108 });
109 let __inner: extern "C" fn(
110 FrameworkReflectionBase,
111 ::unity::SystemType,
112 ::unity::OptionalMethod,
113 ) -> crate::system::reflection::assembly::Assembly = ::core::mem::transmute(__vi.method_ptr);
114 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
115 __inner(__receiver, ::core::convert::Into::into(t), __mi)
116 }
117 }
118 }
119 #[doc = "`GetBaseType(::unity::SystemType)` overload"]
120 fn get_base_type(self, t: impl ::core::convert::Into<::unity::SystemType>) -> ::unity::SystemType {
121 unsafe {
122 let __receiver =
123 <FrameworkReflectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 {
125 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
126 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
127 panic!(
128 "unity: virtual slot {}
129 out of range (vtable len {}
130) on the runtime class behind {}
131 (method `{}
132`)",
133 7usize,
134 __vt.len(),
135 <FrameworkReflectionBase as ::unity::ClassIdentity>::NAME,
136 "GetBaseType",
137 )
138 });
139 let __inner: extern "C" fn(FrameworkReflectionBase, ::unity::SystemType, ::unity::OptionalMethod) -> ::unity::SystemType =
140 ::core::mem::transmute(__vi.method_ptr);
141 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
142 __inner(__receiver, ::core::convert::Into::into(t), __mi)
143 }
144 }
145 }
146 #[doc = "`IsValueType(::unity::SystemType)` overload"]
147 fn is_value_type(self, t: impl ::core::convert::Into<::unity::SystemType>) -> bool {
148 unsafe {
149 let __receiver =
150 <FrameworkReflectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 {
152 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
153 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
154 panic!(
155 "unity: virtual slot {}
156 out of range (vtable len {}
157) on the runtime class behind {}
158 (method `{}
159`)",
160 5usize,
161 __vt.len(),
162 <FrameworkReflectionBase as ::unity::ClassIdentity>::NAME,
163 "IsValueType",
164 )
165 });
166 let __inner: extern "C" fn(FrameworkReflectionBase, ::unity::SystemType, ::unity::OptionalMethod) -> bool =
167 ::core::mem::transmute(__vi.method_ptr);
168 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
169 __inner(__receiver, ::core::convert::Into::into(t), __mi)
170 }
171 }
172 }
173 #[doc = "`IsInterface(::unity::SystemType)` overload"]
174 fn is_interface(self, t: impl ::core::convert::Into<::unity::SystemType>) -> bool {
175 unsafe {
176 let __receiver =
177 <FrameworkReflectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178 {
179 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
180 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
181 panic!(
182 "unity: virtual slot {}
183 out of range (vtable len {}
184) on the runtime class behind {}
185 (method `{}
186`)",
187 13usize,
188 __vt.len(),
189 <FrameworkReflectionBase as ::unity::ClassIdentity>::NAME,
190 "IsInterface",
191 )
192 });
193 let __inner: extern "C" fn(FrameworkReflectionBase, ::unity::SystemType, ::unity::OptionalMethod) -> bool =
194 ::core::mem::transmute(__vi.method_ptr);
195 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
196 __inner(__receiver, ::core::convert::Into::into(t), __mi)
197 }
198 }
199 }
200 #[doc = "`IsNestedPublic(::unity::SystemType)` overload"]
201 fn is_nested_public(self, t: impl ::core::convert::Into<::unity::SystemType>) -> bool {
202 unsafe {
203 let __receiver =
204 <FrameworkReflectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 {
206 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
207 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
208 panic!(
209 "unity: virtual slot {}
210 out of range (vtable len {}
211) on the runtime class behind {}
212 (method `{}
213`)",
214 11usize,
215 __vt.len(),
216 <FrameworkReflectionBase as ::unity::ClassIdentity>::NAME,
217 "IsNestedPublic",
218 )
219 });
220 let __inner: extern "C" fn(FrameworkReflectionBase, ::unity::SystemType, ::unity::OptionalMethod) -> bool =
221 ::core::mem::transmute(__vi.method_ptr);
222 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
223 __inner(__receiver, ::core::convert::Into::into(t), __mi)
224 }
225 }
226 }
227 #[doc = "`IsAbstract(::unity::SystemType)` overload"]
228 fn is_abstract(self, t: impl ::core::convert::Into<::unity::SystemType>) -> bool {
229 unsafe {
230 let __receiver =
231 <FrameworkReflectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232 {
233 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
234 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
235 panic!(
236 "unity: virtual slot {}
237 out of range (vtable len {}
238) on the runtime class behind {}
239 (method `{}
240`)",
241 12usize,
242 __vt.len(),
243 <FrameworkReflectionBase as ::unity::ClassIdentity>::NAME,
244 "IsAbstract",
245 )
246 });
247 let __inner: extern "C" fn(FrameworkReflectionBase, ::unity::SystemType, ::unity::OptionalMethod) -> bool =
248 ::core::mem::transmute(__vi.method_ptr);
249 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
250 __inner(__receiver, ::core::convert::Into::into(t), __mi)
251 }
252 }
253 }
254 #[doc = "`IsEnum(::unity::SystemType)` overload"]
255 fn is_enum(self, t: impl ::core::convert::Into<::unity::SystemType>) -> bool {
256 unsafe {
257 let __receiver =
258 <FrameworkReflectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
259 {
260 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
261 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
262 panic!(
263 "unity: virtual slot {}
264 out of range (vtable len {}
265) on the runtime class behind {}
266 (method `{}
267`)",
268 10usize,
269 __vt.len(),
270 <FrameworkReflectionBase as ::unity::ClassIdentity>::NAME,
271 "IsEnum",
272 )
273 });
274 let __inner: extern "C" fn(FrameworkReflectionBase, ::unity::SystemType, ::unity::OptionalMethod) -> bool =
275 ::core::mem::transmute(__vi.method_ptr);
276 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
277 __inner(__receiver, ::core::convert::Into::into(t), __mi)
278 }
279 }
280 }
281 #[doc = "`IsGenericTypeDefinition(::unity::SystemType)` overload"]
282 fn is_generic_type_definition(self, t: impl ::core::convert::Into<::unity::SystemType>) -> bool {
283 unsafe {
284 let __receiver =
285 <FrameworkReflectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
286 {
287 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
288 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
289 panic!(
290 "unity: virtual slot {}
291 out of range (vtable len {}
292) on the runtime class behind {}
293 (method `{}
294`)",
295 9usize,
296 __vt.len(),
297 <FrameworkReflectionBase as ::unity::ClassIdentity>::NAME,
298 "IsGenericTypeDefinition",
299 )
300 });
301 let __inner: extern "C" fn(FrameworkReflectionBase, ::unity::SystemType, ::unity::OptionalMethod) -> bool =
302 ::core::mem::transmute(__vi.method_ptr);
303 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
304 __inner(__receiver, ::core::convert::Into::into(t), __mi)
305 }
306 }
307 }
308 #[doc = "`IsGenericType(::unity::SystemType)` overload"]
309 fn is_generic_type(self, t: impl ::core::convert::Into<::unity::SystemType>) -> bool {
310 unsafe {
311 let __receiver =
312 <FrameworkReflectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
313 {
314 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
315 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
316 panic!(
317 "unity: virtual slot {}
318 out of range (vtable len {}
319) on the runtime class behind {}
320 (method `{}
321`)",
322 8usize,
323 __vt.len(),
324 <FrameworkReflectionBase as ::unity::ClassIdentity>::NAME,
325 "IsGenericType",
326 )
327 });
328 let __inner: extern "C" fn(FrameworkReflectionBase, ::unity::SystemType, ::unity::OptionalMethod) -> bool =
329 ::core::mem::transmute(__vi.method_ptr);
330 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
331 __inner(__receiver, ::core::convert::Into::into(t), __mi)
332 }
333 }
334 }
335 #[doc = "`.ctor()` overload"]
336 fn ctor(self) -> () {
337 unsafe {
338 let __receiver =
339 <FrameworkReflectionBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
340 ::unity::il2cpp_call!(__FrameworkReflectionBase_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
341(FrameworkReflectionBase)__receiver)
342 }
343 }
344}
345
346#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkreflectionbase")]
347impl<__T: IFrameworkReflectionBase> IFrameworkReflectionBaseMethods for __T {}
348
349#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkreflectionbase")]
350impl FrameworkReflectionBase {
351 pub fn get_type_info_from_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
353 }
354
355 pub fn get_assembly_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
357 }
358
359 pub fn get_base_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
361 }
362
363 pub fn is_value_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
365 }
366
367 pub fn is_interface_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
369 }
370
371 pub fn is_nested_public_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
373 }
374
375 pub fn is_abstract_method_info() -> &'static ::unity::il2cpp::MethodInfo {
376 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
377 }
378
379 pub fn is_enum_method_info() -> &'static ::unity::il2cpp::MethodInfo {
380 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
381 }
382
383 pub fn is_generic_type_definition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
385 }
386
387 pub fn is_generic_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
389 }
390
391 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
393 }
394}
395
396#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkreflectionbase")]
397impl FrameworkReflectionBase {
398 #[doc = "Direct (non-virtual) call to `FrameworkReflectionBase`'s own `GetTypeInfoFromType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
399 pub unsafe fn get_type_info_from_type(this: impl ::core::convert::Into<::unity::IlInstance>, t: ::unity::SystemType) -> ::unity::SystemType {
400 let __mi = Self::get_type_info_from_type_method_info();
401 let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, ::unity::OptionalMethod) -> ::unity::SystemType =
402 ::core::mem::transmute(__mi.method_ptr);
403 __inner(this.into(), t, ::core::option::Option::None)
404 }
405
406 #[doc = "Direct (non-virtual) call to `FrameworkReflectionBase`'s own `GetAssembly`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
407 pub unsafe fn get_assembly(
408 this: impl ::core::convert::Into<::unity::IlInstance>,
409 t: ::unity::SystemType,
410 ) -> crate::system::reflection::assembly::Assembly {
411 let __mi = Self::get_assembly_method_info();
412 let __inner: extern "C" fn(
413 ::unity::IlInstance,
414 ::unity::SystemType,
415 ::unity::OptionalMethod,
416 ) -> crate::system::reflection::assembly::Assembly = ::core::mem::transmute(__mi.method_ptr);
417 __inner(this.into(), t, ::core::option::Option::None)
418 }
419
420 #[doc = "Direct (non-virtual) call to `FrameworkReflectionBase`'s own `GetBaseType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
421 pub unsafe fn get_base_type(this: impl ::core::convert::Into<::unity::IlInstance>, t: ::unity::SystemType) -> ::unity::SystemType {
422 let __mi = Self::get_base_type_method_info();
423 let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, ::unity::OptionalMethod) -> ::unity::SystemType =
424 ::core::mem::transmute(__mi.method_ptr);
425 __inner(this.into(), t, ::core::option::Option::None)
426 }
427
428 #[doc = "Direct (non-virtual) call to `FrameworkReflectionBase`'s own `IsValueType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
429 pub unsafe fn is_value_type(this: impl ::core::convert::Into<::unity::IlInstance>, t: ::unity::SystemType) -> bool {
430 let __mi = Self::is_value_type_method_info();
431 let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, ::unity::OptionalMethod) -> bool =
432 ::core::mem::transmute(__mi.method_ptr);
433 __inner(this.into(), t, ::core::option::Option::None)
434 }
435
436 #[doc = "Direct (non-virtual) call to `FrameworkReflectionBase`'s own `IsInterface`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
437 pub unsafe fn is_interface(this: impl ::core::convert::Into<::unity::IlInstance>, t: ::unity::SystemType) -> bool {
438 let __mi = Self::is_interface_method_info();
439 let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, ::unity::OptionalMethod) -> bool =
440 ::core::mem::transmute(__mi.method_ptr);
441 __inner(this.into(), t, ::core::option::Option::None)
442 }
443
444 #[doc = "Direct (non-virtual) call to `FrameworkReflectionBase`'s own `IsNestedPublic`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
445 pub unsafe fn is_nested_public(this: impl ::core::convert::Into<::unity::IlInstance>, t: ::unity::SystemType) -> bool {
446 let __mi = Self::is_nested_public_method_info();
447 let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, ::unity::OptionalMethod) -> bool =
448 ::core::mem::transmute(__mi.method_ptr);
449 __inner(this.into(), t, ::core::option::Option::None)
450 }
451
452 #[doc = "Direct (non-virtual) call to `FrameworkReflectionBase`'s own `IsAbstract`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
453 pub unsafe fn is_abstract(this: impl ::core::convert::Into<::unity::IlInstance>, t: ::unity::SystemType) -> bool {
454 let __mi = Self::is_abstract_method_info();
455 let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, ::unity::OptionalMethod) -> bool =
456 ::core::mem::transmute(__mi.method_ptr);
457 __inner(this.into(), t, ::core::option::Option::None)
458 }
459
460 #[doc = "Direct (non-virtual) call to `FrameworkReflectionBase`'s own `IsEnum`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
461 pub unsafe fn is_enum(this: impl ::core::convert::Into<::unity::IlInstance>, t: ::unity::SystemType) -> bool {
462 let __mi = Self::is_enum_method_info();
463 let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, ::unity::OptionalMethod) -> bool =
464 ::core::mem::transmute(__mi.method_ptr);
465 __inner(this.into(), t, ::core::option::Option::None)
466 }
467
468 #[doc = "Direct (non-virtual) call to `FrameworkReflectionBase`'s own `IsGenericTypeDefinition`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
469 pub unsafe fn is_generic_type_definition(this: impl ::core::convert::Into<::unity::IlInstance>, t: ::unity::SystemType) -> bool {
470 let __mi = Self::is_generic_type_definition_method_info();
471 let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, ::unity::OptionalMethod) -> bool =
472 ::core::mem::transmute(__mi.method_ptr);
473 __inner(this.into(), t, ::core::option::Option::None)
474 }
475
476 #[doc = "Direct (non-virtual) call to `FrameworkReflectionBase`'s own `IsGenericType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
477 pub unsafe fn is_generic_type(this: impl ::core::convert::Into<::unity::IlInstance>, t: ::unity::SystemType) -> bool {
478 let __mi = Self::is_generic_type_method_info();
479 let __inner: extern "C" fn(::unity::IlInstance, ::unity::SystemType, ::unity::OptionalMethod) -> bool =
480 ::core::mem::transmute(__mi.method_ptr);
481 __inner(this.into(), t, ::core::option::Option::None)
482 }
483}
484
485#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkreflectionbase")]
486impl FrameworkReflectionBase {
487 #[doc = "`.ctor()` — no args"]
488 pub fn new() -> Self {
489 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
490 panic!(
491 "{}
492::{}
493 failed to instantiate",
494 ::core::stringify!(FrameworkReflectionBase),
495 ::core::stringify!(new),
496 )
497 });
498 <Self as IFrameworkReflectionBaseMethods>::ctor(this);
499 this
500 }
501}
502
503#[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkreflectionbase")]
504#[doc(hidden)]
505pub mod prelude {
506 pub use super::{FrameworkReflectionBase, IFrameworkReflectionBase, IFrameworkReflectionBaseMethods};
507 #[cfg(feature = "moon_sharp-interpreter-compatibility-frameworks-frameworkbase")]
508 pub use crate::moon_sharp::interpreter::compatibility::frameworks::frameworkbase::IFrameworkBaseMethods;
509 #[cfg(feature = "system-object")]
510 pub use crate::system::object::IObjectMethods;
511 pub use crate::{moon_sharp::interpreter::compatibility::frameworks::frameworkbase::IFrameworkBase, system::object::IObject};
512}