engage/generated/system/collections/generic/
keynotfoundexception.rs1#[cfg(feature = "system-collections-generic-keynotfoundexception-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/collections/generic/keynotfoundexception/KeyNotFoundException.md"))]
10 #[::unity::class(namespace = "System.Collections.Generic", name = "KeyNotFoundException")]
11 pub struct KeyNotFoundException {}
12}
13
14#[cfg(feature = "system-collections-generic-keynotfoundexception-types")]
15pub use __types::*;
16
17#[cfg(feature = "system-collections-generic-keynotfoundexception")]
18pub trait IKeyNotFoundExceptionMethods: IKeyNotFoundException {
19 #[doc = "`.ctor()` overload"]
20 fn ctor(self) -> () {
21 unsafe {
22 let __receiver = <KeyNotFoundException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23 ::unity::il2cpp_call!((::unity::module_base()+0x3269c30usize)as*mut u8,();
24(KeyNotFoundException)__receiver)
25 }
26 }
27 #[doc = "`.ctor(::unity::Il2CppString)` overload"]
28 fn ctor_2(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
29 unsafe {
30 let __receiver = <KeyNotFoundException as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31 ::unity::il2cpp_call!((::unity::module_base()+0x3269cb0usize)as*mut u8,();
32(KeyNotFoundException)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
33 }
34 }
35}
36
37#[cfg(feature = "system-collections-generic-keynotfoundexception")]
38impl<__T: IKeyNotFoundException> IKeyNotFoundExceptionMethods for __T {}
39
40#[cfg(feature = "system-collections-generic-keynotfoundexception")]
41impl KeyNotFoundException {
42 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
43 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
44 }
45
46 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
47 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
48 }
49}
50
51#[cfg(feature = "system-collections-generic-keynotfoundexception")]
52impl KeyNotFoundException {
53 #[doc = "`.ctor()` — no args"]
54 pub fn new() -> Self {
55 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
56 panic!(
57 "{}
58::{}
59 failed to instantiate",
60 ::core::stringify!(KeyNotFoundException),
61 ::core::stringify!(new),
62 )
63 });
64 <Self as IKeyNotFoundExceptionMethods>::ctor(this);
65 this
66 }
67
68 #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
69 pub fn new_2(message: ::unity::Il2CppString) -> Self {
70 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
71 panic!(
72 "{}
73::{}
74 failed to instantiate",
75 ::core::stringify!(KeyNotFoundException),
76 ::core::stringify!(new_2),
77 )
78 });
79 <Self as IKeyNotFoundExceptionMethods>::ctor_2(this, message);
80 this
81 }
82}
83
84#[cfg(feature = "system-collections-generic-keynotfoundexception")]
85#[doc(hidden)]
86pub mod prelude {
87 pub use super::{IKeyNotFoundException, IKeyNotFoundExceptionMethods, KeyNotFoundException};
88}