Skip to main content

engage/generated/system/io/
directorynotfoundexception.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "system-io-directorynotfoundexception-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        io::ioexception::{IIOException, IOException},
10        object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/directorynotfoundexception/DirectoryNotFoundException.md"))]
14    #[::unity::class(namespace = "System.IO", name = "DirectoryNotFoundException")]
15    #[parent(crate::system::io::ioexception::IOException)]
16    pub struct DirectoryNotFoundException {}
17}
18
19#[cfg(feature = "system-io-directorynotfoundexception-types")]
20pub use __types::*;
21
22#[cfg(feature = "system-io-directorynotfoundexception")]
23pub trait IDirectoryNotFoundExceptionMethods: IDirectoryNotFoundException {
24    #[doc = "`.ctor()` overload"]
25    fn ctor(self) -> () {
26        unsafe {
27            let __receiver =
28                <DirectoryNotFoundException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29            ::unity::il2cpp_call!((::unity::module_base()+0x363e4e0usize)as*mut u8,();
30(DirectoryNotFoundException)__receiver)
31        }
32    }
33    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
34    fn ctor_2(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
35        unsafe {
36            let __receiver =
37                <DirectoryNotFoundException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            ::unity::il2cpp_call!((::unity::module_base()+0x363d550usize)as*mut u8,();
39(DirectoryNotFoundException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
40        }
41    }
42}
43
44#[cfg(feature = "system-io-directorynotfoundexception")]
45impl<__T: IDirectoryNotFoundException> IDirectoryNotFoundExceptionMethods for __T {}
46
47#[cfg(feature = "system-io-directorynotfoundexception")]
48impl DirectoryNotFoundException {
49    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
50        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
51    }
52
53    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
54        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
55    }
56}
57
58#[cfg(feature = "system-io-directorynotfoundexception")]
59impl DirectoryNotFoundException {
60    #[doc = "`.ctor()` — no args"]
61    pub fn new() -> Self {
62        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
63            panic!(
64                "{}
65::{}
66 failed to instantiate",
67                ::core::stringify!(DirectoryNotFoundException),
68                ::core::stringify!(new),
69            )
70        });
71        <Self as IDirectoryNotFoundExceptionMethods>::ctor(this);
72        this
73    }
74
75    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
76    pub fn new_2(message: ::unity::Il2CppString) -> Self {
77        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
78            panic!(
79                "{}
80::{}
81 failed to instantiate",
82                ::core::stringify!(DirectoryNotFoundException),
83                ::core::stringify!(new_2),
84            )
85        });
86        <Self as IDirectoryNotFoundExceptionMethods>::ctor_2(this, message);
87        this
88    }
89}
90
91#[cfg(feature = "system-io-directorynotfoundexception")]
92#[doc(hidden)]
93pub mod prelude {
94    pub use super::{DirectoryNotFoundException, IDirectoryNotFoundException, IDirectoryNotFoundExceptionMethods};
95    #[cfg(feature = "system-io-ioexception")]
96    pub use crate::system::io::ioexception::IIOExceptionMethods;
97    #[cfg(feature = "system-object")]
98    pub use crate::system::object::IObjectMethods;
99    pub use crate::system::{
100        io::ioexception::{IIOException, IOException},
101        object::IObject,
102    };
103}