engage/generated/system/reflection/emit/
typebuilderinstantiation.rs1#[cfg(feature = "system-reflection-emit-typebuilderinstantiation-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 reflection::{
11 memberinfo::{IMemberInfo, MemberInfo},
12 typeinfo::{ITypeInfo, TypeInfo},
13 },
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/reflection/emit/typebuilderinstantiation/TypeBuilderInstantiation.md"))]
17 #[::unity::class(namespace = "System.Reflection.Emit", name = "TypeBuilderInstantiation")]
18 #[parent(crate::system::reflection::typeinfo::TypeInfo)]
19 pub struct TypeBuilderInstantiation {}
20}
21
22#[cfg(feature = "system-reflection-emit-typebuilderinstantiation-types")]
23pub use __types::*;
24
25#[cfg(feature = "system-reflection-emit-typebuilderinstantiation")]
26impl TypeBuilderInstantiation {
27 #[doc = "`MakeGenericType(::unity::SystemType, ::unity::Array<::unity::SystemType>)` overload"]
28 pub fn make_generic_type(
29 r#type: impl ::core::convert::Into<::unity::SystemType>,
30 type_arguments: impl ::core::convert::Into<::unity::Array<::unity::SystemType>>,
31 ) -> ::unity::SystemType {
32 unsafe {
33 ::unity::il2cpp_call!((::unity::module_base()+0x3563480usize)as*mut u8, ::unity::SystemType;
34(::unity::SystemType)::core::convert::Into::into(r#type),(::unity::Array< ::unity::SystemType>)::core::convert::Into::into(type_arguments))
35 }
36 }
37}
38
39#[cfg(feature = "system-reflection-emit-typebuilderinstantiation")]
40impl TypeBuilderInstantiation {
41 pub fn make_generic_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
42 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
43 }
44}
45
46#[cfg(feature = "system-reflection-emit-typebuilderinstantiation")]
47#[doc(hidden)]
48pub mod prelude {
49 pub use super::{ITypeBuilderInstantiation, TypeBuilderInstantiation};
50 #[cfg(feature = "system-object")]
51 pub use crate::system::object::IObjectMethods;
52 #[cfg(feature = "system-reflection-memberinfo")]
53 pub use crate::system::reflection::memberinfo::IMemberInfoMethods;
54 #[cfg(feature = "system-reflection-typeinfo")]
55 pub use crate::system::reflection::typeinfo::ITypeInfoMethods;
56 pub use crate::system::{
57 object::IObject,
58 reflection::{memberinfo::IMemberInfo, typeinfo::ITypeInfo},
59 };
60}