1#[cfg(feature = "system-reflection-propertyinfo-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 reflection::memberinfo::{IMemberInfo, MemberInfo},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/reflection/propertyinfo/PropertyInfo.md"))]
14 #[::unity::class(namespace = "System.Reflection", name = "PropertyInfo")]
15 #[parent(crate::system::reflection::memberinfo::MemberInfo)]
16 pub struct PropertyInfo {}
17}
18
19#[cfg(feature = "system-reflection-propertyinfo-types")]
20pub use __types::*;
21
22#[cfg(feature = "system-reflection-propertyinfo")]
23impl PropertyInfo {
24 #[doc = "`op_Equality(crate::system::reflection::propertyinfo::PropertyInfo, crate::system::reflection::propertyinfo::PropertyInfo)` overload"]
25 pub fn op_equality(
26 left: impl ::core::convert::Into<crate::system::reflection::propertyinfo::PropertyInfo>,
27 right: impl ::core::convert::Into<crate::system::reflection::propertyinfo::PropertyInfo>,
28 ) -> bool {
29 unsafe {
30 ::unity::il2cpp_call!((::unity::module_base()+0x376c710usize)as*mut u8,bool;
31(crate::system::reflection::propertyinfo::PropertyInfo)::core::convert::Into::into(left),(crate::system::reflection::propertyinfo::PropertyInfo)::core::convert::Into::into(right))
32 }
33 }
34
35 #[doc = "`op_Inequality(crate::system::reflection::propertyinfo::PropertyInfo, crate::system::reflection::propertyinfo::PropertyInfo)` overload"]
36 pub fn op_inequality(
37 left: impl ::core::convert::Into<crate::system::reflection::propertyinfo::PropertyInfo>,
38 right: impl ::core::convert::Into<crate::system::reflection::propertyinfo::PropertyInfo>,
39 ) -> bool {
40 unsafe {
41 ::unity::il2cpp_call!((::unity::module_base()+0x376c750usize)as*mut u8,bool;
42(crate::system::reflection::propertyinfo::PropertyInfo)::core::convert::Into::into(left),(crate::system::reflection::propertyinfo::PropertyInfo)::core::convert::Into::into(right))
43 }
44 }
45
46 #[doc = "`internal_from_handle_type(::unity::IntPtr, ::unity::IntPtr)` overload"]
47 pub fn internal_from_handle_type(
48 event_handle: impl ::core::convert::Into<::unity::IntPtr>,
49 type_handle: impl ::core::convert::Into<::unity::IntPtr>,
50 ) -> crate::system::reflection::propertyinfo::PropertyInfo {
51 unsafe {
52 ::unity::il2cpp_call!((::unity::module_base()+0x376c7b0usize)as*mut u8,crate::system::reflection::propertyinfo::PropertyInfo;
53(::unity::IntPtr)::core::convert::Into::into(event_handle),(::unity::IntPtr)::core::convert::Into::into(type_handle))
54 }
55 }
56}
57
58#[cfg(feature = "system-reflection-propertyinfo")]
59pub trait IPropertyInfoMethods: IPropertyInfo {
60 #[doc = "`get_Attributes()` overload"]
61 fn get_attributes(self) -> crate::system::reflection::propertyattributes::PropertyAttributes {
62 unsafe {
63 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 {
65 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
66 let __vi = *__vt.get(16usize).unwrap_or_else(|| {
67 panic!(
68 "unity: virtual slot {}
69 out of range (vtable len {}
70) on the runtime class behind {}
71 (method `{}
72`)",
73 16usize,
74 __vt.len(),
75 <PropertyInfo as ::unity::ClassIdentity>::NAME,
76 "get_Attributes",
77 )
78 });
79 let __inner: extern "C" fn(
80 PropertyInfo,
81 ::unity::OptionalMethod,
82 ) -> crate::system::reflection::propertyattributes::PropertyAttributes = ::core::mem::transmute(__vi.method_ptr);
83 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
84 __inner(__receiver, __mi)
85 }
86 }
87 }
88 #[doc = "`get_CanRead()` overload"]
89 fn get_can_read(self) -> bool {
90 unsafe {
91 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 {
93 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
94 let __vi = *__vt.get(17usize).unwrap_or_else(|| {
95 panic!(
96 "unity: virtual slot {}
97 out of range (vtable len {}
98) on the runtime class behind {}
99 (method `{}
100`)",
101 17usize,
102 __vt.len(),
103 <PropertyInfo as ::unity::ClassIdentity>::NAME,
104 "get_CanRead",
105 )
106 });
107 let __inner: extern "C" fn(PropertyInfo, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
108 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
109 __inner(__receiver, __mi)
110 }
111 }
112 }
113 #[doc = "`get_CanWrite()` overload"]
114 fn get_can_write(self) -> bool {
115 unsafe {
116 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 {
118 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
119 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
120 panic!(
121 "unity: virtual slot {}
122 out of range (vtable len {}
123) on the runtime class behind {}
124 (method `{}
125`)",
126 18usize,
127 __vt.len(),
128 <PropertyInfo as ::unity::ClassIdentity>::NAME,
129 "get_CanWrite",
130 )
131 });
132 let __inner: extern "C" fn(PropertyInfo, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
133 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
134 __inner(__receiver, __mi)
135 }
136 }
137 }
138 #[doc = "`get_IsSpecialName()` overload"]
139 fn get_is_special_name(self) -> bool {
140 unsafe {
141 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142 {
143 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
144 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
145 panic!(
146 "unity: virtual slot {}
147 out of range (vtable len {}
148) on the runtime class behind {}
149 (method `{}
150`)",
151 19usize,
152 __vt.len(),
153 <PropertyInfo as ::unity::ClassIdentity>::NAME,
154 "get_IsSpecialName",
155 )
156 });
157 let __inner: extern "C" fn(PropertyInfo, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
158 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
159 __inner(__receiver, __mi)
160 }
161 }
162 }
163 #[doc = "`get_MemberType()` overload"]
164 fn get_member_type(self) -> crate::system::reflection::membertypes::MemberTypes {
165 unsafe {
166 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 {
168 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
169 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
170 panic!(
171 "unity: virtual slot {}
172 out of range (vtable len {}
173) on the runtime class behind {}
174 (method `{}
175`)",
176 6usize,
177 __vt.len(),
178 <PropertyInfo as ::unity::ClassIdentity>::NAME,
179 "get_MemberType",
180 )
181 });
182 let __inner: extern "C" fn(PropertyInfo, ::unity::OptionalMethod) -> crate::system::reflection::membertypes::MemberTypes =
183 ::core::mem::transmute(__vi.method_ptr);
184 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
185 __inner(__receiver, __mi)
186 }
187 }
188 }
189 #[doc = "`get_PropertyType()` overload"]
190 fn get_property_type(self) -> ::unity::SystemType {
191 unsafe {
192 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193 {
194 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
195 let __vi = *__vt.get(20usize).unwrap_or_else(|| {
196 panic!(
197 "unity: virtual slot {}
198 out of range (vtable len {}
199) on the runtime class behind {}
200 (method `{}
201`)",
202 20usize,
203 __vt.len(),
204 <PropertyInfo as ::unity::ClassIdentity>::NAME,
205 "get_PropertyType",
206 )
207 });
208 let __inner: extern "C" fn(PropertyInfo, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__vi.method_ptr);
209 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
210 __inner(__receiver, __mi)
211 }
212 }
213 }
214 #[doc = "`.ctor()` overload"]
215 fn ctor(self) -> () {
216 unsafe {
217 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218 ::unity::il2cpp_call!((::unity::module_base()+0x376c4a0usize)as*mut u8,();
219(PropertyInfo)__receiver)
220 }
221 }
222 #[doc = "`GetAccessors(bool)` overload"]
223 fn get_accessors(self, non_public: impl ::core::convert::Into<bool>) -> ::unity::Array<crate::system::reflection::methodinfo::MethodInfo> {
224 unsafe {
225 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226 {
227 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
228 let __vi = *__vt.get(21usize).unwrap_or_else(|| {
229 panic!(
230 "unity: virtual slot {}
231 out of range (vtable len {}
232) on the runtime class behind {}
233 (method `{}
234`)",
235 21usize,
236 __vt.len(),
237 <PropertyInfo as ::unity::ClassIdentity>::NAME,
238 "GetAccessors",
239 )
240 });
241 let __inner: extern "C" fn(
242 PropertyInfo,
243 bool,
244 ::unity::OptionalMethod,
245 ) -> ::unity::Array<crate::system::reflection::methodinfo::MethodInfo> = ::core::mem::transmute(__vi.method_ptr);
246 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
247 __inner(__receiver, ::core::convert::Into::into(non_public), __mi)
248 }
249 }
250 }
251 #[doc = "`GetGetMethod(bool)` overload"]
252 fn get_get_method(self, non_public: impl ::core::convert::Into<bool>) -> crate::system::reflection::methodinfo::MethodInfo {
253 unsafe {
254 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255 {
256 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
257 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
258 panic!(
259 "unity: virtual slot {}
260 out of range (vtable len {}
261) on the runtime class behind {}
262 (method `{}
263`)",
264 22usize,
265 __vt.len(),
266 <PropertyInfo as ::unity::ClassIdentity>::NAME,
267 "GetGetMethod",
268 )
269 });
270 let __inner: extern "C" fn(PropertyInfo, bool, ::unity::OptionalMethod) -> crate::system::reflection::methodinfo::MethodInfo =
271 ::core::mem::transmute(__vi.method_ptr);
272 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
273 __inner(__receiver, ::core::convert::Into::into(non_public), __mi)
274 }
275 }
276 }
277 #[doc = "`GetIndexParameters()` overload"]
278 fn get_index_parameters(self) -> ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> {
279 unsafe {
280 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
281 {
282 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
283 let __vi = *__vt.get(23usize).unwrap_or_else(|| {
284 panic!(
285 "unity: virtual slot {}
286 out of range (vtable len {}
287) on the runtime class behind {}
288 (method `{}
289`)",
290 23usize,
291 __vt.len(),
292 <PropertyInfo as ::unity::ClassIdentity>::NAME,
293 "GetIndexParameters",
294 )
295 });
296 let __inner: extern "C" fn(
297 PropertyInfo,
298 ::unity::OptionalMethod,
299 ) -> ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> = ::core::mem::transmute(__vi.method_ptr);
300 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
301 __inner(__receiver, __mi)
302 }
303 }
304 }
305 #[doc = "`GetSetMethod()` overload"]
306 fn get_set_method(self) -> crate::system::reflection::methodinfo::MethodInfo {
307 unsafe {
308 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
309 {
310 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
311 let __vi = *__vt.get(24usize).unwrap_or_else(|| {
312 panic!(
313 "unity: virtual slot {}
314 out of range (vtable len {}
315) on the runtime class behind {}
316 (method `{}
317`)",
318 24usize,
319 __vt.len(),
320 <PropertyInfo as ::unity::ClassIdentity>::NAME,
321 "GetSetMethod",
322 )
323 });
324 let __inner: extern "C" fn(PropertyInfo, ::unity::OptionalMethod) -> crate::system::reflection::methodinfo::MethodInfo =
325 ::core::mem::transmute(__vi.method_ptr);
326 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
327 __inner(__receiver, __mi)
328 }
329 }
330 }
331 #[doc = "`GetSetMethod(bool)` overload"]
332 fn get_set_method_2(self, non_public: impl ::core::convert::Into<bool>) -> crate::system::reflection::methodinfo::MethodInfo {
333 unsafe {
334 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
335 {
336 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
337 let __vi = *__vt.get(25usize).unwrap_or_else(|| {
338 panic!(
339 "unity: virtual slot {}
340 out of range (vtable len {}
341) on the runtime class behind {}
342 (method `{}
343`)",
344 25usize,
345 __vt.len(),
346 <PropertyInfo as ::unity::ClassIdentity>::NAME,
347 "GetSetMethod",
348 )
349 });
350 let __inner: extern "C" fn(PropertyInfo, bool, ::unity::OptionalMethod) -> crate::system::reflection::methodinfo::MethodInfo =
351 ::core::mem::transmute(__vi.method_ptr);
352 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
353 __inner(__receiver, ::core::convert::Into::into(non_public), __mi)
354 }
355 }
356 }
357 #[doc = "`GetValue(crate::system::object::Object, ::unity::Array<crate::system::object::Object>)` overload"]
358 fn get_value(
359 self,
360 obj: impl ::core::convert::Into<crate::system::object::Object>,
361 index: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
362 ) -> crate::system::object::Object {
363 unsafe {
364 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
365 {
366 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
367 let __vi = *__vt.get(26usize).unwrap_or_else(|| {
368 panic!(
369 "unity: virtual slot {}
370 out of range (vtable len {}
371) on the runtime class behind {}
372 (method `{}
373`)",
374 26usize,
375 __vt.len(),
376 <PropertyInfo as ::unity::ClassIdentity>::NAME,
377 "GetValue",
378 )
379 });
380 let __inner: extern "C" fn(
381 PropertyInfo,
382 crate::system::object::Object,
383 ::unity::Array<crate::system::object::Object>,
384 ::unity::OptionalMethod,
385 ) -> crate::system::object::Object = ::core::mem::transmute(__vi.method_ptr);
386 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
387 __inner(__receiver, ::core::convert::Into::into(obj), ::core::convert::Into::into(index), __mi)
388 }
389 }
390 }
391 #[doc = "`GetValue(crate::system::object::Object)` overload"]
392 fn get_value_2(self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> crate::system::object::Object {
393 unsafe {
394 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
395 ::unity::il2cpp_call!((::unity::module_base()+0x376c4f0usize)as*mut u8,crate::system::object::Object;
396(PropertyInfo)__receiver,(crate::system::object::Object)::core::convert::Into::into(obj))
397 }
398 }
399 #[doc = "`SetValue(crate::system::object::Object, crate::system::object::Object, ::unity::Array<crate::system::object::Object>)` overload"]
400 fn set_value(
401 self,
402 obj: impl ::core::convert::Into<crate::system::object::Object>,
403 value: impl ::core::convert::Into<crate::system::object::Object>,
404 index: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
405 ) -> () {
406 unsafe {
407 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
408 {
409 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
410 let __vi = *__vt.get(28usize).unwrap_or_else(|| {
411 panic!(
412 "unity: virtual slot {}
413 out of range (vtable len {}
414) on the runtime class behind {}
415 (method `{}
416`)",
417 28usize,
418 __vt.len(),
419 <PropertyInfo as ::unity::ClassIdentity>::NAME,
420 "SetValue",
421 )
422 });
423 let __inner: extern "C" fn(
424 PropertyInfo,
425 crate::system::object::Object,
426 crate::system::object::Object,
427 ::unity::Array<crate::system::object::Object>,
428 ::unity::OptionalMethod,
429 ) -> () = ::core::mem::transmute(__vi.method_ptr);
430 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
431 __inner(
432 __receiver,
433 ::core::convert::Into::into(obj),
434 ::core::convert::Into::into(value),
435 ::core::convert::Into::into(index),
436 __mi,
437 )
438 }
439 }
440 }
441 #[doc = "`SetValue(crate::system::object::Object, crate::system::object::Object)` overload"]
442 fn set_value_2(
443 self,
444 obj: impl ::core::convert::Into<crate::system::object::Object>,
445 value: impl ::core::convert::Into<crate::system::object::Object>,
446 ) -> () {
447 unsafe {
448 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
449 ::unity::il2cpp_call!((::unity::module_base()+0x376c530usize)as*mut u8,();
450(PropertyInfo)__receiver,(crate::system::object::Object)::core::convert::Into::into(obj),(crate::system::object::Object)::core::convert::Into::into(value))
451 }
452 }
453 #[doc = "`GetOptionalCustomModifiers()` overload"]
454 fn get_optional_custom_modifiers(self) -> ::unity::Array<::unity::SystemType> {
455 unsafe {
456 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
457 {
458 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
459 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
460 panic!(
461 "unity: virtual slot {}
462 out of range (vtable len {}
463) on the runtime class behind {}
464 (method `{}
465`)",
466 30usize,
467 __vt.len(),
468 <PropertyInfo as ::unity::ClassIdentity>::NAME,
469 "GetOptionalCustomModifiers",
470 )
471 });
472 let __inner: extern "C" fn(PropertyInfo, ::unity::OptionalMethod) -> ::unity::Array<::unity::SystemType> =
473 ::core::mem::transmute(__vi.method_ptr);
474 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
475 __inner(__receiver, __mi)
476 }
477 }
478 }
479 #[doc = "`GetRequiredCustomModifiers()` overload"]
480 fn get_required_custom_modifiers(self) -> ::unity::Array<::unity::SystemType> {
481 unsafe {
482 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
483 {
484 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
485 let __vi = *__vt.get(31usize).unwrap_or_else(|| {
486 panic!(
487 "unity: virtual slot {}
488 out of range (vtable len {}
489) on the runtime class behind {}
490 (method `{}
491`)",
492 31usize,
493 __vt.len(),
494 <PropertyInfo as ::unity::ClassIdentity>::NAME,
495 "GetRequiredCustomModifiers",
496 )
497 });
498 let __inner: extern "C" fn(PropertyInfo, ::unity::OptionalMethod) -> ::unity::Array<::unity::SystemType> =
499 ::core::mem::transmute(__vi.method_ptr);
500 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
501 __inner(__receiver, __mi)
502 }
503 }
504 }
505 #[doc = "`GetConstantValue()` overload"]
506 fn get_constant_value(self) -> crate::system::object::Object {
507 unsafe {
508 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
509 {
510 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
511 let __vi = *__vt.get(32usize).unwrap_or_else(|| {
512 panic!(
513 "unity: virtual slot {}
514 out of range (vtable len {}
515) on the runtime class behind {}
516 (method `{}
517`)",
518 32usize,
519 __vt.len(),
520 <PropertyInfo as ::unity::ClassIdentity>::NAME,
521 "GetConstantValue",
522 )
523 });
524 let __inner: extern "C" fn(PropertyInfo, ::unity::OptionalMethod) -> crate::system::object::Object =
525 ::core::mem::transmute(__vi.method_ptr);
526 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
527 __inner(__receiver, __mi)
528 }
529 }
530 }
531 #[doc = "`GetRawConstantValue()` overload"]
532 fn get_raw_constant_value(self) -> crate::system::object::Object {
533 unsafe {
534 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
535 {
536 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
537 let __vi = *__vt.get(33usize).unwrap_or_else(|| {
538 panic!(
539 "unity: virtual slot {}
540 out of range (vtable len {}
541) on the runtime class behind {}
542 (method `{}
543`)",
544 33usize,
545 __vt.len(),
546 <PropertyInfo as ::unity::ClassIdentity>::NAME,
547 "GetRawConstantValue",
548 )
549 });
550 let __inner: extern "C" fn(PropertyInfo, ::unity::OptionalMethod) -> crate::system::object::Object =
551 ::core::mem::transmute(__vi.method_ptr);
552 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
553 __inner(__receiver, __mi)
554 }
555 }
556 }
557 #[doc = "`Equals(crate::system::object::Object)` overload"]
558 fn equals(self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
559 unsafe {
560 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
561 {
562 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
563 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
564 panic!(
565 "unity: virtual slot {}
566 out of range (vtable len {}
567) on the runtime class behind {}
568 (method `{}
569`)",
570 0usize,
571 __vt.len(),
572 <PropertyInfo as ::unity::ClassIdentity>::NAME,
573 "Equals",
574 )
575 });
576 let __inner: extern "C" fn(PropertyInfo, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
577 ::core::mem::transmute(__vi.method_ptr);
578 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
579 __inner(__receiver, ::core::convert::Into::into(obj), __mi)
580 }
581 }
582 }
583 #[doc = "`GetHashCode()` overload"]
584 fn get_hash_code(self) -> i32 {
585 unsafe {
586 let __receiver = <PropertyInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
587 {
588 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
589 let __vi = *__vt.get(2usize).unwrap_or_else(|| {
590 panic!(
591 "unity: virtual slot {}
592 out of range (vtable len {}
593) on the runtime class behind {}
594 (method `{}
595`)",
596 2usize,
597 __vt.len(),
598 <PropertyInfo as ::unity::ClassIdentity>::NAME,
599 "GetHashCode",
600 )
601 });
602 let __inner: extern "C" fn(PropertyInfo, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
603 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
604 __inner(__receiver, __mi)
605 }
606 }
607 }
608}
609
610#[cfg(feature = "system-reflection-propertyinfo")]
611impl<__T: IPropertyInfo> IPropertyInfoMethods for __T {}
612
613#[cfg(feature = "system-reflection-propertyinfo")]
614impl PropertyInfo {
615 pub fn get_attributes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
616 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
617 }
618
619 pub fn get_can_read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
620 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
621 }
622
623 pub fn get_can_write_method_info() -> &'static ::unity::il2cpp::MethodInfo {
624 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
625 }
626
627 pub fn get_is_special_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
628 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
629 }
630
631 pub fn get_member_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
632 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
633 }
634
635 pub fn get_property_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
636 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
637 }
638
639 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
640 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
641 }
642
643 pub fn get_accessors_method_info() -> &'static ::unity::il2cpp::MethodInfo {
644 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
645 }
646
647 pub fn get_get_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
648 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
649 }
650
651 pub fn get_index_parameters_method_info() -> &'static ::unity::il2cpp::MethodInfo {
652 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
653 }
654
655 pub fn get_set_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
656 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
657 }
658
659 pub fn get_set_method_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
660 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
661 }
662
663 pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
664 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
665 }
666
667 pub fn get_value_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
668 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
669 }
670
671 pub fn set_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
672 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
673 }
674
675 pub fn set_value_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
676 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
677 }
678
679 pub fn get_optional_custom_modifiers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
680 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
681 }
682
683 pub fn get_required_custom_modifiers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
684 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
685 }
686
687 pub fn get_constant_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
688 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
689 }
690
691 pub fn get_raw_constant_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
692 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
693 }
694
695 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
696 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
697 }
698
699 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
700 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
701 }
702
703 pub fn op_equality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
704 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
705 }
706
707 pub fn op_inequality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
708 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
709 }
710
711 pub fn internal_from_handle_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
712 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
713 }
714}
715
716#[cfg(feature = "system-reflection-propertyinfo")]
717impl PropertyInfo {
718 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `get_Attributes`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
719 pub unsafe fn get_attributes(
720 this: impl ::core::convert::Into<::unity::IlInstance>,
721 ) -> crate::system::reflection::propertyattributes::PropertyAttributes {
722 let __mi = Self::get_attributes_method_info();
723 let __inner: extern "C" fn(
724 ::unity::IlInstance,
725 ::unity::OptionalMethod,
726 ) -> crate::system::reflection::propertyattributes::PropertyAttributes = ::core::mem::transmute(__mi.method_ptr);
727 __inner(this.into(), ::core::option::Option::None)
728 }
729
730 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `get_CanRead`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
731 pub unsafe fn get_can_read(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
732 let __mi = Self::get_can_read_method_info();
733 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
734 __inner(this.into(), ::core::option::Option::None)
735 }
736
737 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `get_CanWrite`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
738 pub unsafe fn get_can_write(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
739 let __mi = Self::get_can_write_method_info();
740 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
741 __inner(this.into(), ::core::option::Option::None)
742 }
743
744 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `get_IsSpecialName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
745 pub unsafe fn get_is_special_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
746 let __mi = Self::get_is_special_name_method_info();
747 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
748 __inner(this.into(), ::core::option::Option::None)
749 }
750
751 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `get_MemberType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
752 pub unsafe fn get_member_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::reflection::membertypes::MemberTypes {
753 let __mi = Self::get_member_type_method_info();
754 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::reflection::membertypes::MemberTypes =
755 ::core::mem::transmute(__mi.method_ptr);
756 __inner(this.into(), ::core::option::Option::None)
757 }
758
759 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `get_PropertyType`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
760 pub unsafe fn get_property_type(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::SystemType {
761 let __mi = Self::get_property_type_method_info();
762 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::SystemType = ::core::mem::transmute(__mi.method_ptr);
763 __inner(this.into(), ::core::option::Option::None)
764 }
765
766 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `GetAccessors`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
767 pub unsafe fn get_accessors(
768 this: impl ::core::convert::Into<::unity::IlInstance>,
769 non_public: bool,
770 ) -> ::unity::Array<crate::system::reflection::methodinfo::MethodInfo> {
771 let __mi = Self::get_accessors_method_info();
772 let __inner: extern "C" fn(
773 ::unity::IlInstance,
774 bool,
775 ::unity::OptionalMethod,
776 ) -> ::unity::Array<crate::system::reflection::methodinfo::MethodInfo> = ::core::mem::transmute(__mi.method_ptr);
777 __inner(this.into(), non_public, ::core::option::Option::None)
778 }
779
780 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `GetGetMethod`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
781 pub unsafe fn get_get_method(
782 this: impl ::core::convert::Into<::unity::IlInstance>,
783 non_public: bool,
784 ) -> crate::system::reflection::methodinfo::MethodInfo {
785 let __mi = Self::get_get_method_method_info();
786 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> crate::system::reflection::methodinfo::MethodInfo =
787 ::core::mem::transmute(__mi.method_ptr);
788 __inner(this.into(), non_public, ::core::option::Option::None)
789 }
790
791 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `GetIndexParameters`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
792 pub unsafe fn get_index_parameters(
793 this: impl ::core::convert::Into<::unity::IlInstance>,
794 ) -> ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> {
795 let __mi = Self::get_index_parameters_method_info();
796 let __inner: extern "C" fn(
797 ::unity::IlInstance,
798 ::unity::OptionalMethod,
799 ) -> ::unity::Array<crate::system::reflection::parameterinfo::ParameterInfo> = ::core::mem::transmute(__mi.method_ptr);
800 __inner(this.into(), ::core::option::Option::None)
801 }
802
803 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `GetSetMethod`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
804 pub unsafe fn get_set_method(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::reflection::methodinfo::MethodInfo {
805 let __mi = Self::get_set_method_method_info();
806 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::reflection::methodinfo::MethodInfo =
807 ::core::mem::transmute(__mi.method_ptr);
808 __inner(this.into(), ::core::option::Option::None)
809 }
810
811 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `GetSetMethod`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
812 pub unsafe fn get_set_method_2(
813 this: impl ::core::convert::Into<::unity::IlInstance>,
814 non_public: bool,
815 ) -> crate::system::reflection::methodinfo::MethodInfo {
816 let __mi = Self::get_set_method_2_method_info();
817 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> crate::system::reflection::methodinfo::MethodInfo =
818 ::core::mem::transmute(__mi.method_ptr);
819 __inner(this.into(), non_public, ::core::option::Option::None)
820 }
821
822 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `GetValue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
823 pub unsafe fn get_value(
824 this: impl ::core::convert::Into<::unity::IlInstance>,
825 obj: crate::system::object::Object,
826 index: ::unity::Array<crate::system::object::Object>,
827 ) -> crate::system::object::Object {
828 let __mi = Self::get_value_method_info();
829 let __inner: extern "C" fn(
830 ::unity::IlInstance,
831 crate::system::object::Object,
832 ::unity::Array<crate::system::object::Object>,
833 ::unity::OptionalMethod,
834 ) -> crate::system::object::Object = ::core::mem::transmute(__mi.method_ptr);
835 __inner(this.into(), obj, index, ::core::option::Option::None)
836 }
837
838 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `SetValue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
839 pub unsafe fn set_value(
840 this: impl ::core::convert::Into<::unity::IlInstance>,
841 obj: crate::system::object::Object,
842 value: crate::system::object::Object,
843 index: ::unity::Array<crate::system::object::Object>,
844 ) -> () {
845 let __mi = Self::set_value_method_info();
846 let __inner: extern "C" fn(
847 ::unity::IlInstance,
848 crate::system::object::Object,
849 crate::system::object::Object,
850 ::unity::Array<crate::system::object::Object>,
851 ::unity::OptionalMethod,
852 ) -> () = ::core::mem::transmute(__mi.method_ptr);
853 __inner(this.into(), obj, value, index, ::core::option::Option::None)
854 }
855
856 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `GetOptionalCustomModifiers`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
857 pub unsafe fn get_optional_custom_modifiers(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Array<::unity::SystemType> {
858 let __mi = Self::get_optional_custom_modifiers_method_info();
859 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Array<::unity::SystemType> =
860 ::core::mem::transmute(__mi.method_ptr);
861 __inner(this.into(), ::core::option::Option::None)
862 }
863
864 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `GetRequiredCustomModifiers`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
865 pub unsafe fn get_required_custom_modifiers(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Array<::unity::SystemType> {
866 let __mi = Self::get_required_custom_modifiers_method_info();
867 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Array<::unity::SystemType> =
868 ::core::mem::transmute(__mi.method_ptr);
869 __inner(this.into(), ::core::option::Option::None)
870 }
871
872 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `GetConstantValue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
873 pub unsafe fn get_constant_value(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
874 let __mi = Self::get_constant_value_method_info();
875 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
876 ::core::mem::transmute(__mi.method_ptr);
877 __inner(this.into(), ::core::option::Option::None)
878 }
879
880 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `GetRawConstantValue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
881 pub unsafe fn get_raw_constant_value(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::system::object::Object {
882 let __mi = Self::get_raw_constant_value_method_info();
883 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::system::object::Object =
884 ::core::mem::transmute(__mi.method_ptr);
885 __inner(this.into(), ::core::option::Option::None)
886 }
887
888 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `Equals`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
889 pub unsafe fn equals(this: impl ::core::convert::Into<::unity::IlInstance>, obj: crate::system::object::Object) -> bool {
890 let __mi = Self::equals_method_info();
891 let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
892 ::core::mem::transmute(__mi.method_ptr);
893 __inner(this.into(), obj, ::core::option::Option::None)
894 }
895
896 #[doc = "Direct (non-virtual) call to `PropertyInfo`'s own `GetHashCode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
897 pub unsafe fn get_hash_code(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
898 let __mi = Self::get_hash_code_method_info();
899 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
900 __inner(this.into(), ::core::option::Option::None)
901 }
902}
903
904#[cfg(feature = "system-reflection-propertyinfo")]
905impl PropertyInfo {
906 #[doc = "`.ctor()` — no args"]
907 pub fn new() -> Self {
908 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
909 panic!(
910 "{}
911::{}
912 failed to instantiate",
913 ::core::stringify!(PropertyInfo),
914 ::core::stringify!(new),
915 )
916 });
917 <Self as IPropertyInfoMethods>::ctor(this);
918 this
919 }
920}
921
922#[cfg(feature = "system-reflection-propertyinfo")]
923#[doc(hidden)]
924pub mod prelude {
925 pub use super::{IPropertyInfo, IPropertyInfoMethods, PropertyInfo};
926 #[cfg(feature = "system-object")]
927 pub use crate::system::object::IObjectMethods;
928 #[cfg(feature = "system-reflection-memberinfo")]
929 pub use crate::system::reflection::memberinfo::IMemberInfoMethods;
930 pub use crate::system::{object::IObject, reflection::memberinfo::IMemberInfo};
931}