Skip to main content

engage/generated/system/reflection/
targetinvocationexception.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-reflection-targetinvocationexception-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8
9    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/reflection/targetinvocationexception/TargetInvocationException.md"))]
10    #[::unity::class(namespace = "System.Reflection", name = "TargetInvocationException")]
11    pub struct TargetInvocationException {}
12}
13
14#[cfg(feature = "system-reflection-targetinvocationexception-types")]
15pub use __types::*;
16
17#[cfg(feature = "system-reflection-targetinvocationexception")]
18pub trait ITargetInvocationExceptionMethods: ITargetInvocationException {
19    #[doc = "`.ctor()` overload"]
20    fn ctor(self) -> () {
21        unsafe {
22            let __receiver =
23                <TargetInvocationException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
24            ::unity::il2cpp_call!((::unity::module_base()+0x3590b40usize)as*mut u8,();
25(TargetInvocationException)__receiver)
26        }
27    }
28}
29
30#[cfg(feature = "system-reflection-targetinvocationexception")]
31impl<__T: ITargetInvocationException> ITargetInvocationExceptionMethods for __T {}
32
33#[cfg(feature = "system-reflection-targetinvocationexception")]
34impl TargetInvocationException {
35    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
36        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
37    }
38}
39
40#[cfg(feature = "system-reflection-targetinvocationexception")]
41impl TargetInvocationException {
42    #[doc = "`.ctor()` — no args"]
43    pub fn new() -> Self {
44        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
45            panic!(
46                "{}
47::{}
48 failed to instantiate",
49                ::core::stringify!(TargetInvocationException),
50                ::core::stringify!(new),
51            )
52        });
53        <Self as ITargetInvocationExceptionMethods>::ctor(this);
54        this
55    }
56}
57
58#[cfg(feature = "system-reflection-targetinvocationexception")]
59#[doc(hidden)]
60pub mod prelude {
61    pub use super::{ITargetInvocationException, ITargetInvocationExceptionMethods, TargetInvocationException};
62}