diff --git a/.gitignore b/.gitignore
index 7b64f0e..aa79e71 100644
--- a/.gitignore
+++ b/.gitignore
@@ -734,3 +734,4 @@ Temporary Items
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
+MyLib.Generated/Hello.cs
diff --git a/MyLib.Generated/Hello.cs b/MyLib.Generated/Hello.cs
deleted file mode 100644
index 657876c..0000000
--- a/MyLib.Generated/Hello.cs
+++ /dev/null
@@ -1,82217 +0,0 @@
-// Number of generated types: 338
-// Number of generated members: 2889
-
-//
-using System;
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-namespace NativeGeneratedCode;
-
-
-//
-//
-internal class __BeyondNETNativeModuleInitializer
-{
- [System.Runtime.CompilerServices.ModuleInitializer]
- internal static unsafe void BeyondNETNativeModuleInitializer()
- {
- // TODO: We could probably remove the native implementation if we port it to C# by using DllImport's for CoreFoundation stuff
-
- const string dnLibraryInitFuncName = "_DNLibraryInit";
-
- var selfHandle = System.Runtime.InteropServices.NativeLibrary.GetMainProgramHandle();
-
- if (selfHandle == IntPtr.Zero) {
- return;
- }
-
- bool getExportSuccess = System.Runtime.InteropServices.NativeLibrary.TryGetExport(
- selfHandle,
- dnLibraryInitFuncName,
- out IntPtr dnLibraryInitSymbol
- );
-
- if (!getExportSuccess ||
- dnLibraryInitSymbol == IntPtr.Zero) {
- return;
- }
-
- delegate* unmanaged dnLibraryInitFunc = (delegate* unmanaged)dnLibraryInitSymbol;
-
- dnLibraryInitFunc();
- }
-}
-
-internal unsafe class NativeDelegateBox
- where TDelegateType: Delegate
- where TFunctionPointerType: unmanaged
-{
- internal TDelegateType Trampoline { get; }
- internal void* Context { get; }
- internal TFunctionPointerType FunctionPointer { get; }
-
- internal NativeDelegateBox(
- TDelegateType trampoline,
- void* context,
- TFunctionPointerType? functionPointer
- )
- {
- Trampoline = trampoline ?? throw new ArgumentNullException(nameof(trampoline));
- Context = context is not null ? context : throw new ArgumentNullException(nameof(context));
- FunctionPointer = functionPointer ?? throw new ArgumentNullException(nameof(functionPointer));
- }
-}
-
-internal static unsafe class InteropUtils
-{
- #region Allocation
- internal static GCHandle AllocateGCHandle(this object instance, GCHandleType handleType)
- {
- GCHandle handle = GCHandle.Alloc(instance, handleType);
-
- return handle;
- }
-
- internal static void* AllocateGCHandleAndGetAddress(this object? instance)
- {
- if (instance is null) {
- return null;
- }
-
- GCHandle handle = instance.AllocateGCHandle(GCHandleType.Normal);
- void* handleAddress = handle.ToHandleAddress();
-
- return handleAddress;
- }
- #endregion Allocation
-
- #region Free
- internal static void FreeIfAllocated(void* handleAddress)
- {
- if (handleAddress is null) {
- return;
- }
-
- GCHandle? handle = GetGCHandle(handleAddress);
-
- handle?.FreeIfAllocated();
- }
-
- internal static void CheckedFreeIfAllocated(void* handleAddress)
- {
- if (handleAddress is null) {
- return;
- }
-
- GCHandle? handle = GetGCHandle(handleAddress);
-
- if (handle is null) {
- return;
- }
-
- object? target = handle?.Target;
-
- if (target is not null &&
- !(target is T)) {
- throw new Exception("Type of handle is unexpected");
- }
-
- handle?.FreeIfAllocated();
- }
-
- internal static void FreeIfAllocated(this GCHandle handle)
- {
- if (!handle.IsAllocated) {
- return;
- }
-
- handle.Free();
- }
- #endregion Free
-
- #region Handle Address/GCHandle <-> Object Conversion
- internal static void* ToHandleAddress(this GCHandle handle)
- {
- void* handleAddress = (void*)GCHandle.ToIntPtr(handle);
-
- return handleAddress;
- }
-
- internal static GCHandle? GetGCHandle(void* handleAddress)
- {
- if (handleAddress is null) {
- return null;
- }
-
- GCHandle handle = GCHandle.FromIntPtr((nint)handleAddress);
-
- return handle;
- }
-
- internal static T? GetInstance(void* handleAddress)
- {
- GCHandle? handle = GetGCHandle(handleAddress);
-
- object? target = handle?.Target;
-
- if (target is null) {
- return default;
- }
-
- T instance = (T)target;
-
- return instance;
- }
-
- internal static void ReplaceInstance(void* handleAddress, object? newInstance)
- {
- GCHandle? maybeHandle = GetGCHandle(handleAddress);
-
- if (!maybeHandle.HasValue) {
- return;
- }
-
- GCHandle handle = maybeHandle.Value;
-
- handle.Target = newInstance;
- }
- #endregion Handle Address/GCHandle <-> Object Conversion
-
- #region Type Conversion
- [UnmanagedCallersOnly(EntryPoint = "DNObjectCastTo")]
- internal static void* /* System.Object */ DNObjectCastTo(void* /* System.Object */ @object, void* /* System.Type */ type, void** /* out System.Exception */ outException)
- {
- System.Object objectConverted = InteropUtils.GetInstance(@object);
- System.Type typeConverted = InteropUtils.GetInstance(type);
-
- try {
- System.Type currentType = objectConverted.GetType();
- bool isValidCast = currentType.IsAssignableTo(typeConverted);
-
- if (!isValidCast) {
- throw new InvalidCastException();
- }
-
- if (outException is not null) {
- *outException = null;
- }
-
- return objectConverted.AllocateGCHandleAndGetAddress();
- } catch (Exception exception) {
- if (outException is not null) {
- void* exceptionHandleAddress = exception.AllocateGCHandleAndGetAddress();
-
- *outException = exceptionHandleAddress;
- }
-
- return null;
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "DNObjectCastAs")]
- internal static void* /* System.Object */ DNObjectCastAs(void* /* System.Object */ @object, void* /* System.Type */ type)
- {
- System.Object objectConverted = InteropUtils.GetInstance(@object);
- System.Type typeConverted = InteropUtils.GetInstance(type);
-
- try {
- System.Type currentType = objectConverted.GetType();
- bool isValidCast = currentType.IsAssignableTo(typeConverted);
-
- if (!isValidCast) {
- return null;
- }
-
- return objectConverted.AllocateGCHandleAndGetAddress();
- } catch {
- return null;
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "DNObjectIs")]
- internal static byte DNObjectIs(void* /* System.Object */ @object, void* /* System.Type */ type)
- {
- System.Object objectConverted = InteropUtils.GetInstance(@object);
- System.Type typeConverted = InteropUtils.GetInstance(type);
-
- try {
- System.Type currentType = objectConverted.GetType();
- bool isValidCast = currentType.IsAssignableTo(typeConverted);
-
- return isValidCast.ToCBool();
- } catch {
- return false.ToCBool();
- }
- }
- #endregion Type Conversion
-
- #region Strings
- ///
- /// This allocates a native char* and copies the contents of the managed string into it.
- /// The allocated native string must be freed when not needed anymore!
- ///
- [UnmanagedCallersOnly(EntryPoint = "DNStringToC")]
- internal static byte* DNStringToC(void* /* System.String? */ systemString)
- {
- if (systemString is null) {
- return null;
- }
-
- System.String? systemStringConverted = InteropUtils.GetInstance(systemString);
-
- if (systemStringConverted is null) {
- return null;
- }
-
- byte* cString = (byte*)Marshal.StringToHGlobalAuto(systemStringConverted);
-
- return cString;
- }
-
- ///
- /// This allocates a managed string and copies the contents of the native char* into it.
- ///
- [UnmanagedCallersOnly(EntryPoint = "DNStringFromC")]
- internal static void* /* System.String? */ DNStringFromC(byte* cString)
- {
- if (cString is null) {
- return null;
- }
-
- System.String? systemString = Marshal.PtrToStringAuto((nint)cString);
-
- if (systemString is null) {
- return null;
- }
-
- void* systemStringNative = systemString.AllocateGCHandleAndGetAddress();
-
- return systemStringNative;
- }
- #endregion Strings
-
- #region Bools
- internal static byte ToCBool(this bool @bool)
- {
- if (@bool) {
- return 1;
- } else {
- return 0;
- }
- }
-
- public static bool ToBool(this byte cBool)
- {
- return cBool == 1;
- }
- #endregion Bools
-
- #region Boxing/Unboxing of primitives
- #region Bool
- [UnmanagedCallersOnly(EntryPoint = "DNObjectCastToBool")]
- internal static byte DNObjectCastToBool(void* /* System.Object */ @object, void** /* out System.Exception */ outException)
- {
- System.Object objectConverted = InteropUtils.GetInstance(@object);
-
- try {
- bool returnValue = (bool)objectConverted;
-
- if (outException is not null) {
- *outException = null;
- }
-
- return returnValue.ToCBool();
- } catch (Exception exception) {
- if (outException is not null) {
- void* exceptionHandleAddress = exception.AllocateGCHandleAndGetAddress();
-
- *outException = exceptionHandleAddress;
- }
-
- return default(bool).ToCBool();
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "DNObjectFromBool")]
- internal static void* /* System.Object */ DNObjectFromBool(byte value)
- {
- return ((System.Object)value.ToBool()).AllocateGCHandleAndGetAddress();
- }
- #endregion Bool
-
- #region Float
- [UnmanagedCallersOnly(EntryPoint = "DNObjectCastToFloat")]
- internal static float DNObjectCastToFloat(void* /* System.Object */ @object, void** /* out System.Exception */ outException)
- {
- System.Object objectConverted = InteropUtils.GetInstance(@object);
-
- try {
- float returnValue = (float)objectConverted;
-
- if (outException is not null) {
- *outException = null;
- }
-
- return returnValue;
- } catch (Exception exception) {
- if (outException is not null) {
- void* exceptionHandleAddress = exception.AllocateGCHandleAndGetAddress();
-
- *outException = exceptionHandleAddress;
- }
-
- return default(float);
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "DNObjectFromFloat")]
- internal static void* /* System.Object */ DNObjectFromFloat(float number)
- {
- return ((System.Object)number).AllocateGCHandleAndGetAddress();
- }
- #endregion Float
-
- #region Double
- [UnmanagedCallersOnly(EntryPoint = "DNObjectCastToDouble")]
- internal static double DNObjectCastToDouble(void* /* System.Object */ @object, void** /* out System.Exception */ outException)
- {
- System.Object objectConverted = InteropUtils.GetInstance(@object);
-
- try {
- double returnValue = (double)objectConverted;
-
- if (outException is not null) {
- *outException = null;
- }
-
- return returnValue;
- } catch (Exception exception) {
- if (outException is not null) {
- void* exceptionHandleAddress = exception.AllocateGCHandleAndGetAddress();
-
- *outException = exceptionHandleAddress;
- }
-
- return default(double);
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "DNObjectFromDouble")]
- internal static void* /* System.Object */ DNObjectFromDouble(double number)
- {
- return ((System.Object)number).AllocateGCHandleAndGetAddress();
- }
- #endregion Double
-
- #region Int8
- [UnmanagedCallersOnly(EntryPoint = "DNObjectCastToInt8")]
- internal static sbyte DNObjectCastToInt8(void* /* System.Object */ @object, void** /* out System.Exception */ outException)
- {
- System.Object objectConverted = InteropUtils.GetInstance(@object);
-
- try {
- sbyte returnValue = (sbyte)objectConverted;
-
- if (outException is not null) {
- *outException = null;
- }
-
- return returnValue;
- } catch (Exception exception) {
- if (outException is not null) {
- void* exceptionHandleAddress = exception.AllocateGCHandleAndGetAddress();
-
- *outException = exceptionHandleAddress;
- }
-
- return default(sbyte);
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "DNObjectFromInt8")]
- internal static void* /* System.Object */ DNObjectFromInt8(sbyte number)
- {
- return ((System.Object)number).AllocateGCHandleAndGetAddress();
- }
- #endregion Int8
-
- #region UInt8
- [UnmanagedCallersOnly(EntryPoint = "DNObjectCastToUInt8")]
- internal static byte DNObjectCastToUInt8(void* /* System.Object */ @object, void** /* out System.Exception */ outException)
- {
- System.Object objectConverted = InteropUtils.GetInstance(@object);
-
- try {
- byte returnValue = (byte)objectConverted;
-
- if (outException is not null) {
- *outException = null;
- }
-
- return returnValue;
- } catch (Exception exception) {
- if (outException is not null) {
- void* exceptionHandleAddress = exception.AllocateGCHandleAndGetAddress();
-
- *outException = exceptionHandleAddress;
- }
-
- return default(byte);
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "DNObjectFromUInt8")]
- internal static void* /* System.Object */ DNObjectFromUInt8(byte number)
- {
- return ((System.Object)number).AllocateGCHandleAndGetAddress();
- }
- #endregion UInt8
-
- #region Int16
- [UnmanagedCallersOnly(EntryPoint = "DNObjectCastToInt16")]
- internal static Int16 DNObjectCastToInt16(void* /* System.Object */ @object, void** /* out System.Exception */ outException)
- {
- System.Object objectConverted = InteropUtils.GetInstance(@object);
-
- try {
- Int16 returnValue = (Int16)objectConverted;
-
- if (outException is not null) {
- *outException = null;
- }
-
- return returnValue;
- } catch (Exception exception) {
- if (outException is not null) {
- void* exceptionHandleAddress = exception.AllocateGCHandleAndGetAddress();
-
- *outException = exceptionHandleAddress;
- }
-
- return default(Int16);
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "DNObjectFromInt16")]
- internal static void* /* System.Object */ DNObjectFromInt16(Int16 number)
- {
- return ((System.Object)number).AllocateGCHandleAndGetAddress();
- }
- #endregion Int16
-
- #region UInt16
- [UnmanagedCallersOnly(EntryPoint = "DNObjectCastToUInt16")]
- internal static UInt16 DNObjectCastToUInt16(void* /* System.Object */ @object, void** /* out System.Exception */ outException)
- {
- System.Object objectConverted = InteropUtils.GetInstance(@object);
-
- try {
- UInt16 returnValue = (UInt16)objectConverted;
-
- if (outException is not null) {
- *outException = null;
- }
-
- return returnValue;
- } catch (Exception exception) {
- if (outException is not null) {
- void* exceptionHandleAddress = exception.AllocateGCHandleAndGetAddress();
-
- *outException = exceptionHandleAddress;
- }
-
- return default(UInt16);
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "DNObjectFromUInt16")]
- internal static void* /* System.Object */ DNObjectFromUInt16(UInt16 number)
- {
- return ((System.Object)number).AllocateGCHandleAndGetAddress();
- }
- #endregion UInt16
-
- #region Int32
- [UnmanagedCallersOnly(EntryPoint = "DNObjectCastToInt32")]
- internal static Int32 DNObjectCastToInt32(void* /* System.Object */ @object, void** /* out System.Exception */ outException)
- {
- System.Object objectConverted = InteropUtils.GetInstance(@object);
-
- try {
- Int32 returnValue = (Int32)objectConverted;
-
- if (outException is not null) {
- *outException = null;
- }
-
- return returnValue;
- } catch (Exception exception) {
- if (outException is not null) {
- void* exceptionHandleAddress = exception.AllocateGCHandleAndGetAddress();
-
- *outException = exceptionHandleAddress;
- }
-
- return default(Int32);
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "DNObjectFromInt32")]
- internal static void* /* System.Object */ DNObjectFromInt32(Int32 number)
- {
- return ((System.Object)number).AllocateGCHandleAndGetAddress();
- }
- #endregion Int32
-
- #region UInt32
- [UnmanagedCallersOnly(EntryPoint = "DNObjectCastToUInt32")]
- internal static UInt32 DNObjectCastToUInt32(void* /* System.Object */ @object, void** /* out System.Exception */ outException)
- {
- System.Object objectConverted = InteropUtils.GetInstance(@object);
-
- try {
- UInt32 returnValue = (UInt32)objectConverted;
-
- if (outException is not null) {
- *outException = null;
- }
-
- return returnValue;
- } catch (Exception exception) {
- if (outException is not null) {
- void* exceptionHandleAddress = exception.AllocateGCHandleAndGetAddress();
-
- *outException = exceptionHandleAddress;
- }
-
- return default(UInt32);
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "DNObjectFromUInt32")]
- internal static void* /* System.Object */ DNObjectFromUInt32(UInt32 number)
- {
- return ((System.Object)number).AllocateGCHandleAndGetAddress();
- }
- #endregion UInt32
-
- #region Int64
- [UnmanagedCallersOnly(EntryPoint = "DNObjectCastToInt64")]
- internal static Int64 DNObjectCastToInt64(void* /* System.Object */ @object, void** /* out System.Exception */ outException)
- {
- System.Object objectConverted = InteropUtils.GetInstance(@object);
-
- try {
- Int64 returnValue = (Int64)objectConverted;
-
- if (outException is not null) {
- *outException = null;
- }
-
- return returnValue;
- } catch (Exception exception) {
- if (outException is not null) {
- void* exceptionHandleAddress = exception.AllocateGCHandleAndGetAddress();
-
- *outException = exceptionHandleAddress;
- }
-
- return default(Int64);
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "DNObjectFromInt64")]
- internal static void* /* System.Object */ DNObjectFromInt64(Int64 number)
- {
- return ((System.Object)number).AllocateGCHandleAndGetAddress();
- }
- #endregion Int64
-
- #region UInt64
- [UnmanagedCallersOnly(EntryPoint = "DNObjectCastToUInt64")]
- internal static UInt64 DNObjectCastToUInt64(void* /* System.Object */ @object, void** /* out System.Exception */ outException)
- {
- System.Object objectConverted = InteropUtils.GetInstance(@object);
-
- try {
- UInt64 returnValue = (UInt64)objectConverted;
-
- if (outException is not null) {
- *outException = null;
- }
-
- return returnValue;
- } catch (Exception exception) {
- if (outException is not null) {
- void* exceptionHandleAddress = exception.AllocateGCHandleAndGetAddress();
-
- *outException = exceptionHandleAddress;
- }
-
- return default(UInt64);
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "DNObjectFromUInt64")]
- internal static void* /* System.Object */ DNObjectFromUInt64(UInt64 number)
- {
- return ((System.Object)number).AllocateGCHandleAndGetAddress();
- }
- #endregion UInt64
- #endregion Boxing/Unboxing of primitives
-}
-
-//
-//
-// Omitted due to settings
-
-//
-//
-internal unsafe class System_Object
-{
- [UnmanagedCallersOnly(EntryPoint = "System_Object_GetType")]
- internal static void* /* System.Type */ System_Object_GetType(void* /* System.Object */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Object __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type __returnValue = __selfConverted.GetType();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Object_ToString")]
- internal static void* /* System.String */ System_Object_ToString(void* /* System.Object */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Object __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.String __returnValue = __selfConverted.ToString();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Object_Equals")]
- internal static byte /* System.Boolean */ System_Object_Equals(void* /* System.Object */ __self, void* /* System.Object */ obj, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Object __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Object objConverted = InteropUtils.GetInstance(obj);
-
- try {
- System.Boolean __returnValue = __selfConverted.Equals(objConverted);
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Object_Equals_1")]
- internal static byte /* System.Boolean */ System_Object_Equals_1(void* /* System.Object */ objA, void* /* System.Object */ objB, void** /* System.Exception */ __outException)
- {
- System.Object objAConverted = InteropUtils.GetInstance(objA);
- System.Object objBConverted = InteropUtils.GetInstance(objB);
-
- try {
- System.Boolean __returnValue = System.Object.Equals(objAConverted, objBConverted);
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Object_ReferenceEquals")]
- internal static byte /* System.Boolean */ System_Object_ReferenceEquals(void* /* System.Object */ objA, void* /* System.Object */ objB, void** /* System.Exception */ __outException)
- {
- System.Object objAConverted = InteropUtils.GetInstance(objA);
- System.Object objBConverted = InteropUtils.GetInstance(objB);
-
- try {
- System.Boolean __returnValue = System.Object.ReferenceEquals(objAConverted, objBConverted);
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Object_GetHashCode")]
- internal static int /* System.Int32 */ System_Object_GetHashCode(void* /* System.Object */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Object __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Int32 __returnValue = __selfConverted.GetHashCode();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValue;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return -1;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Object_Create")]
- internal static void* /* System.Object */ System_Object_Create(void** /* System.Exception */ __outException)
- {
-
- try {
- System.Object __returnValue = new System.Object();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Object_TypeOf")]
- internal static void* /* System.Type */ System_Object_TypeOf()
- {
-
- System.Type __returnValue = typeof(System.Object);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
- return __returnValueNative;
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Object_Destroy")]
- internal static void /* System.Void */ System_Object_Destroy(void* /* System.Object */ __self)
- {
-
- InteropUtils.FreeIfAllocated(__self);
- }
-
-}
-
-
-internal unsafe class System_Type
-{
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetType")]
- internal static void* /* System.Type */ System_Type_GetType(void* /* System.String */ typeName, byte /* System.Boolean */ throwOnError, byte /* System.Boolean */ ignoreCase, void** /* System.Exception */ __outException)
- {
- System.String typeNameConverted = InteropUtils.GetInstance(typeName);
- System.Boolean throwOnErrorConverted = throwOnError.ToBool();
- System.Boolean ignoreCaseConverted = ignoreCase.ToBool();
-
- try {
- System.Type __returnValue = System.Type.GetType(typeNameConverted, throwOnErrorConverted, ignoreCaseConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetType_1")]
- internal static void* /* System.Type */ System_Type_GetType_1(void* /* System.String */ typeName, byte /* System.Boolean */ throwOnError, void** /* System.Exception */ __outException)
- {
- System.String typeNameConverted = InteropUtils.GetInstance(typeName);
- System.Boolean throwOnErrorConverted = throwOnError.ToBool();
-
- try {
- System.Type __returnValue = System.Type.GetType(typeNameConverted, throwOnErrorConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetType_2")]
- internal static void* /* System.Type */ System_Type_GetType_2(void* /* System.String */ typeName, void** /* System.Exception */ __outException)
- {
- System.String typeNameConverted = InteropUtils.GetInstance(typeName);
-
- try {
- System.Type __returnValue = System.Type.GetType(typeNameConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetTypeFromHandle")]
- internal static void* /* System.Type */ System_Type_GetTypeFromHandle(void* /* System.RuntimeTypeHandle */ handle, void** /* System.Exception */ __outException)
- {
- System.RuntimeTypeHandle handleConverted = InteropUtils.GetInstance(handle);
-
- try {
- System.Type __returnValue = System.Type.GetTypeFromHandle(handleConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetType_3")]
- internal static void* /* System.Type */ System_Type_GetType_3(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type __returnValue = __selfConverted.GetType();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetElementType")]
- internal static void* /* System.Type */ System_Type_GetElementType(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type __returnValue = __selfConverted.GetElementType();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetArrayRank")]
- internal static int /* System.Int32 */ System_Type_GetArrayRank(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Int32 __returnValue = __selfConverted.GetArrayRank();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValue;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return -1;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetGenericTypeDefinition")]
- internal static void* /* System.Type */ System_Type_GetGenericTypeDefinition(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type __returnValue = __selfConverted.GetGenericTypeDefinition();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetGenericArguments")]
- internal static void* /* System.Type[] */ System_Type_GetGenericArguments(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type[] __returnValue = __selfConverted.GetGenericArguments();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetOptionalCustomModifiers")]
- internal static void* /* System.Type[] */ System_Type_GetOptionalCustomModifiers(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type[] __returnValue = __selfConverted.GetOptionalCustomModifiers();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetRequiredCustomModifiers")]
- internal static void* /* System.Type[] */ System_Type_GetRequiredCustomModifiers(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type[] __returnValue = __selfConverted.GetRequiredCustomModifiers();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetGenericParameterConstraints")]
- internal static void* /* System.Type[] */ System_Type_GetGenericParameterConstraints(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type[] __returnValue = __selfConverted.GetGenericParameterConstraints();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsAssignableTo")]
- internal static byte /* System.Boolean */ System_Type_IsAssignableTo(void* /* System.Type */ __self, void* /* System.Type */ targetType, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Type targetTypeConverted = InteropUtils.GetInstance(targetType);
-
- try {
- System.Boolean __returnValue = __selfConverted.IsAssignableTo(targetTypeConverted);
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetConstructor")]
- internal static void* /* System.Reflection.ConstructorInfo */ System_Type_GetConstructor(void* /* System.Type */ __self, void* /* System.Type[] */ types, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
-
- try {
- System.Reflection.ConstructorInfo __returnValue = __selfConverted.GetConstructor(typesConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetConstructor_1")]
- internal static void* /* System.Reflection.ConstructorInfo */ System_Type_GetConstructor_1(void* /* System.Type */ __self, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void* /* System.Type[] */ types, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
-
- try {
- System.Reflection.ConstructorInfo __returnValue = __selfConverted.GetConstructor(bindingAttr, typesConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetConstructor_2")]
- internal static void* /* System.Reflection.ConstructorInfo */ System_Type_GetConstructor_2(void* /* System.Type */ __self, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void* /* System.Reflection.Binder */ binder, void* /* System.Type[] */ types, void* /* System.Reflection.ParameterModifier[] */ modifiers, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Reflection.Binder binderConverted = InteropUtils.GetInstance(binder);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
- System.Reflection.ParameterModifier[] modifiersConverted = InteropUtils.GetInstance(modifiers);
-
- try {
- System.Reflection.ConstructorInfo __returnValue = __selfConverted.GetConstructor(bindingAttr, binderConverted, typesConverted, modifiersConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetConstructor_3")]
- internal static void* /* System.Reflection.ConstructorInfo */ System_Type_GetConstructor_3(void* /* System.Type */ __self, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void* /* System.Reflection.Binder */ binder, System.Reflection.CallingConventions /* System.Reflection.CallingConventions */ callConvention, void* /* System.Type[] */ types, void* /* System.Reflection.ParameterModifier[] */ modifiers, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Reflection.Binder binderConverted = InteropUtils.GetInstance(binder);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
- System.Reflection.ParameterModifier[] modifiersConverted = InteropUtils.GetInstance(modifiers);
-
- try {
- System.Reflection.ConstructorInfo __returnValue = __selfConverted.GetConstructor(bindingAttr, binderConverted, callConvention, typesConverted, modifiersConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetConstructors")]
- internal static void* /* System.Reflection.ConstructorInfo[] */ System_Type_GetConstructors(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.ConstructorInfo[] __returnValue = __selfConverted.GetConstructors();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetConstructors_1")]
- internal static void* /* System.Reflection.ConstructorInfo[] */ System_Type_GetConstructors_1(void* /* System.Type */ __self, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.ConstructorInfo[] __returnValue = __selfConverted.GetConstructors(bindingAttr);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetEvent")]
- internal static void* /* System.Reflection.EventInfo */ System_Type_GetEvent(void* /* System.Type */ __self, void* /* System.String */ name, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
-
- try {
- System.Reflection.EventInfo __returnValue = __selfConverted.GetEvent(nameConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetEvent_1")]
- internal static void* /* System.Reflection.EventInfo */ System_Type_GetEvent_1(void* /* System.Type */ __self, void* /* System.String */ name, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
-
- try {
- System.Reflection.EventInfo __returnValue = __selfConverted.GetEvent(nameConverted, bindingAttr);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetEvents")]
- internal static void* /* System.Reflection.EventInfo[] */ System_Type_GetEvents(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.EventInfo[] __returnValue = __selfConverted.GetEvents();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetEvents_1")]
- internal static void* /* System.Reflection.EventInfo[] */ System_Type_GetEvents_1(void* /* System.Type */ __self, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.EventInfo[] __returnValue = __selfConverted.GetEvents(bindingAttr);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetField")]
- internal static void* /* System.Reflection.FieldInfo */ System_Type_GetField(void* /* System.Type */ __self, void* /* System.String */ name, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
-
- try {
- System.Reflection.FieldInfo __returnValue = __selfConverted.GetField(nameConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetField_1")]
- internal static void* /* System.Reflection.FieldInfo */ System_Type_GetField_1(void* /* System.Type */ __self, void* /* System.String */ name, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
-
- try {
- System.Reflection.FieldInfo __returnValue = __selfConverted.GetField(nameConverted, bindingAttr);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetFields")]
- internal static void* /* System.Reflection.FieldInfo[] */ System_Type_GetFields(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.FieldInfo[] __returnValue = __selfConverted.GetFields();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetFields_1")]
- internal static void* /* System.Reflection.FieldInfo[] */ System_Type_GetFields_1(void* /* System.Type */ __self, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.FieldInfo[] __returnValue = __selfConverted.GetFields(bindingAttr);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetFunctionPointerCallingConventions")]
- internal static void* /* System.Type[] */ System_Type_GetFunctionPointerCallingConventions(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type[] __returnValue = __selfConverted.GetFunctionPointerCallingConventions();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetFunctionPointerReturnType")]
- internal static void* /* System.Type */ System_Type_GetFunctionPointerReturnType(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type __returnValue = __selfConverted.GetFunctionPointerReturnType();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetFunctionPointerParameterTypes")]
- internal static void* /* System.Type[] */ System_Type_GetFunctionPointerParameterTypes(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type[] __returnValue = __selfConverted.GetFunctionPointerParameterTypes();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMember")]
- internal static void* /* System.Reflection.MemberInfo[] */ System_Type_GetMember(void* /* System.Type */ __self, void* /* System.String */ name, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
-
- try {
- System.Reflection.MemberInfo[] __returnValue = __selfConverted.GetMember(nameConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMember_1")]
- internal static void* /* System.Reflection.MemberInfo[] */ System_Type_GetMember_1(void* /* System.Type */ __self, void* /* System.String */ name, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
-
- try {
- System.Reflection.MemberInfo[] __returnValue = __selfConverted.GetMember(nameConverted, bindingAttr);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMember_2")]
- internal static void* /* System.Reflection.MemberInfo[] */ System_Type_GetMember_2(void* /* System.Type */ __self, void* /* System.String */ name, System.Reflection.MemberTypes /* System.Reflection.MemberTypes */ type, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
-
- try {
- System.Reflection.MemberInfo[] __returnValue = __selfConverted.GetMember(nameConverted, type, bindingAttr);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMembers")]
- internal static void* /* System.Reflection.MemberInfo[] */ System_Type_GetMembers(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.MemberInfo[] __returnValue = __selfConverted.GetMembers();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMemberWithSameMetadataDefinitionAs")]
- internal static void* /* System.Reflection.MemberInfo */ System_Type_GetMemberWithSameMetadataDefinitionAs(void* /* System.Type */ __self, void* /* System.Reflection.MemberInfo */ member, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Reflection.MemberInfo memberConverted = InteropUtils.GetInstance(member);
-
- try {
- System.Reflection.MemberInfo __returnValue = __selfConverted.GetMemberWithSameMetadataDefinitionAs(memberConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMembers_1")]
- internal static void* /* System.Reflection.MemberInfo[] */ System_Type_GetMembers_1(void* /* System.Type */ __self, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.MemberInfo[] __returnValue = __selfConverted.GetMembers(bindingAttr);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMethod")]
- internal static void* /* System.Reflection.MethodInfo */ System_Type_GetMethod(void* /* System.Type */ __self, void* /* System.String */ name, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
-
- try {
- System.Reflection.MethodInfo __returnValue = __selfConverted.GetMethod(nameConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMethod_1")]
- internal static void* /* System.Reflection.MethodInfo */ System_Type_GetMethod_1(void* /* System.Type */ __self, void* /* System.String */ name, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
-
- try {
- System.Reflection.MethodInfo __returnValue = __selfConverted.GetMethod(nameConverted, bindingAttr);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMethod_2")]
- internal static void* /* System.Reflection.MethodInfo */ System_Type_GetMethod_2(void* /* System.Type */ __self, void* /* System.String */ name, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void* /* System.Type[] */ types, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
-
- try {
- System.Reflection.MethodInfo __returnValue = __selfConverted.GetMethod(nameConverted, bindingAttr, typesConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMethod_3")]
- internal static void* /* System.Reflection.MethodInfo */ System_Type_GetMethod_3(void* /* System.Type */ __self, void* /* System.String */ name, void* /* System.Type[] */ types, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
-
- try {
- System.Reflection.MethodInfo __returnValue = __selfConverted.GetMethod(nameConverted, typesConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMethod_4")]
- internal static void* /* System.Reflection.MethodInfo */ System_Type_GetMethod_4(void* /* System.Type */ __self, void* /* System.String */ name, void* /* System.Type[] */ types, void* /* System.Reflection.ParameterModifier[] */ modifiers, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
- System.Reflection.ParameterModifier[] modifiersConverted = InteropUtils.GetInstance(modifiers);
-
- try {
- System.Reflection.MethodInfo __returnValue = __selfConverted.GetMethod(nameConverted, typesConverted, modifiersConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMethod_5")]
- internal static void* /* System.Reflection.MethodInfo */ System_Type_GetMethod_5(void* /* System.Type */ __self, void* /* System.String */ name, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void* /* System.Reflection.Binder */ binder, void* /* System.Type[] */ types, void* /* System.Reflection.ParameterModifier[] */ modifiers, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Reflection.Binder binderConverted = InteropUtils.GetInstance(binder);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
- System.Reflection.ParameterModifier[] modifiersConverted = InteropUtils.GetInstance(modifiers);
-
- try {
- System.Reflection.MethodInfo __returnValue = __selfConverted.GetMethod(nameConverted, bindingAttr, binderConverted, typesConverted, modifiersConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMethod_6")]
- internal static void* /* System.Reflection.MethodInfo */ System_Type_GetMethod_6(void* /* System.Type */ __self, void* /* System.String */ name, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void* /* System.Reflection.Binder */ binder, System.Reflection.CallingConventions /* System.Reflection.CallingConventions */ callConvention, void* /* System.Type[] */ types, void* /* System.Reflection.ParameterModifier[] */ modifiers, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Reflection.Binder binderConverted = InteropUtils.GetInstance(binder);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
- System.Reflection.ParameterModifier[] modifiersConverted = InteropUtils.GetInstance(modifiers);
-
- try {
- System.Reflection.MethodInfo __returnValue = __selfConverted.GetMethod(nameConverted, bindingAttr, binderConverted, callConvention, typesConverted, modifiersConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMethod_7")]
- internal static void* /* System.Reflection.MethodInfo */ System_Type_GetMethod_7(void* /* System.Type */ __self, void* /* System.String */ name, int /* System.Int32 */ genericParameterCount, void* /* System.Type[] */ types, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
-
- try {
- System.Reflection.MethodInfo __returnValue = __selfConverted.GetMethod(nameConverted, genericParameterCount, typesConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMethod_8")]
- internal static void* /* System.Reflection.MethodInfo */ System_Type_GetMethod_8(void* /* System.Type */ __self, void* /* System.String */ name, int /* System.Int32 */ genericParameterCount, void* /* System.Type[] */ types, void* /* System.Reflection.ParameterModifier[] */ modifiers, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
- System.Reflection.ParameterModifier[] modifiersConverted = InteropUtils.GetInstance(modifiers);
-
- try {
- System.Reflection.MethodInfo __returnValue = __selfConverted.GetMethod(nameConverted, genericParameterCount, typesConverted, modifiersConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMethod_9")]
- internal static void* /* System.Reflection.MethodInfo */ System_Type_GetMethod_9(void* /* System.Type */ __self, void* /* System.String */ name, int /* System.Int32 */ genericParameterCount, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void* /* System.Reflection.Binder */ binder, void* /* System.Type[] */ types, void* /* System.Reflection.ParameterModifier[] */ modifiers, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Reflection.Binder binderConverted = InteropUtils.GetInstance(binder);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
- System.Reflection.ParameterModifier[] modifiersConverted = InteropUtils.GetInstance(modifiers);
-
- try {
- System.Reflection.MethodInfo __returnValue = __selfConverted.GetMethod(nameConverted, genericParameterCount, bindingAttr, binderConverted, typesConverted, modifiersConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMethod_10")]
- internal static void* /* System.Reflection.MethodInfo */ System_Type_GetMethod_10(void* /* System.Type */ __self, void* /* System.String */ name, int /* System.Int32 */ genericParameterCount, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void* /* System.Reflection.Binder */ binder, System.Reflection.CallingConventions /* System.Reflection.CallingConventions */ callConvention, void* /* System.Type[] */ types, void* /* System.Reflection.ParameterModifier[] */ modifiers, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Reflection.Binder binderConverted = InteropUtils.GetInstance(binder);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
- System.Reflection.ParameterModifier[] modifiersConverted = InteropUtils.GetInstance(modifiers);
-
- try {
- System.Reflection.MethodInfo __returnValue = __selfConverted.GetMethod(nameConverted, genericParameterCount, bindingAttr, binderConverted, callConvention, typesConverted, modifiersConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMethods")]
- internal static void* /* System.Reflection.MethodInfo[] */ System_Type_GetMethods(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.MethodInfo[] __returnValue = __selfConverted.GetMethods();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetMethods_1")]
- internal static void* /* System.Reflection.MethodInfo[] */ System_Type_GetMethods_1(void* /* System.Type */ __self, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.MethodInfo[] __returnValue = __selfConverted.GetMethods(bindingAttr);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetNestedType")]
- internal static void* /* System.Type */ System_Type_GetNestedType(void* /* System.Type */ __self, void* /* System.String */ name, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
-
- try {
- System.Type __returnValue = __selfConverted.GetNestedType(nameConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetNestedType_1")]
- internal static void* /* System.Type */ System_Type_GetNestedType_1(void* /* System.Type */ __self, void* /* System.String */ name, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
-
- try {
- System.Type __returnValue = __selfConverted.GetNestedType(nameConverted, bindingAttr);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetNestedTypes")]
- internal static void* /* System.Type[] */ System_Type_GetNestedTypes(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type[] __returnValue = __selfConverted.GetNestedTypes();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetNestedTypes_1")]
- internal static void* /* System.Type[] */ System_Type_GetNestedTypes_1(void* /* System.Type */ __self, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type[] __returnValue = __selfConverted.GetNestedTypes(bindingAttr);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetProperty")]
- internal static void* /* System.Reflection.PropertyInfo */ System_Type_GetProperty(void* /* System.Type */ __self, void* /* System.String */ name, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
-
- try {
- System.Reflection.PropertyInfo __returnValue = __selfConverted.GetProperty(nameConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetProperty_1")]
- internal static void* /* System.Reflection.PropertyInfo */ System_Type_GetProperty_1(void* /* System.Type */ __self, void* /* System.String */ name, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
-
- try {
- System.Reflection.PropertyInfo __returnValue = __selfConverted.GetProperty(nameConverted, bindingAttr);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetProperty_2")]
- internal static void* /* System.Reflection.PropertyInfo */ System_Type_GetProperty_2(void* /* System.Type */ __self, void* /* System.String */ name, void* /* System.Type */ returnType, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Type returnTypeConverted = InteropUtils.GetInstance(returnType);
-
- try {
- System.Reflection.PropertyInfo __returnValue = __selfConverted.GetProperty(nameConverted, returnTypeConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetProperty_3")]
- internal static void* /* System.Reflection.PropertyInfo */ System_Type_GetProperty_3(void* /* System.Type */ __self, void* /* System.String */ name, void* /* System.Type[] */ types, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
-
- try {
- System.Reflection.PropertyInfo __returnValue = __selfConverted.GetProperty(nameConverted, typesConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetProperty_4")]
- internal static void* /* System.Reflection.PropertyInfo */ System_Type_GetProperty_4(void* /* System.Type */ __self, void* /* System.String */ name, void* /* System.Type */ returnType, void* /* System.Type[] */ types, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Type returnTypeConverted = InteropUtils.GetInstance(returnType);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
-
- try {
- System.Reflection.PropertyInfo __returnValue = __selfConverted.GetProperty(nameConverted, returnTypeConverted, typesConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetProperty_5")]
- internal static void* /* System.Reflection.PropertyInfo */ System_Type_GetProperty_5(void* /* System.Type */ __self, void* /* System.String */ name, void* /* System.Type */ returnType, void* /* System.Type[] */ types, void* /* System.Reflection.ParameterModifier[] */ modifiers, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Type returnTypeConverted = InteropUtils.GetInstance(returnType);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
- System.Reflection.ParameterModifier[] modifiersConverted = InteropUtils.GetInstance(modifiers);
-
- try {
- System.Reflection.PropertyInfo __returnValue = __selfConverted.GetProperty(nameConverted, returnTypeConverted, typesConverted, modifiersConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetProperty_6")]
- internal static void* /* System.Reflection.PropertyInfo */ System_Type_GetProperty_6(void* /* System.Type */ __self, void* /* System.String */ name, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void* /* System.Reflection.Binder */ binder, void* /* System.Type */ returnType, void* /* System.Type[] */ types, void* /* System.Reflection.ParameterModifier[] */ modifiers, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Reflection.Binder binderConverted = InteropUtils.GetInstance(binder);
- System.Type returnTypeConverted = InteropUtils.GetInstance(returnType);
- System.Type[] typesConverted = InteropUtils.GetInstance(types);
- System.Reflection.ParameterModifier[] modifiersConverted = InteropUtils.GetInstance(modifiers);
-
- try {
- System.Reflection.PropertyInfo __returnValue = __selfConverted.GetProperty(nameConverted, bindingAttr, binderConverted, returnTypeConverted, typesConverted, modifiersConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetProperties")]
- internal static void* /* System.Reflection.PropertyInfo[] */ System_Type_GetProperties(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.PropertyInfo[] __returnValue = __selfConverted.GetProperties();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetProperties_1")]
- internal static void* /* System.Reflection.PropertyInfo[] */ System_Type_GetProperties_1(void* /* System.Type */ __self, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.PropertyInfo[] __returnValue = __selfConverted.GetProperties(bindingAttr);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetDefaultMembers")]
- internal static void* /* System.Reflection.MemberInfo[] */ System_Type_GetDefaultMembers(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.MemberInfo[] __returnValue = __selfConverted.GetDefaultMembers();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetTypeHandle")]
- internal static void* /* System.RuntimeTypeHandle */ System_Type_GetTypeHandle(void* /* System.Object */ o, void** /* System.Exception */ __outException)
- {
- System.Object oConverted = InteropUtils.GetInstance(o);
-
- try {
- System.RuntimeTypeHandle __returnValue = System.Type.GetTypeHandle(oConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetTypeArray")]
- internal static void* /* System.Type[] */ System_Type_GetTypeArray(void* /* System.Object[] */ args, void** /* System.Exception */ __outException)
- {
- System.Object[] argsConverted = InteropUtils.GetInstance(args);
-
- try {
- System.Type[] __returnValue = System.Type.GetTypeArray(argsConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetTypeCode")]
- internal static System.TypeCode /* System.TypeCode */ System_Type_GetTypeCode(void* /* System.Type */ type, void** /* System.Exception */ __outException)
- {
- System.Type typeConverted = InteropUtils.GetInstance(type);
-
- try {
- System.TypeCode __returnValue = System.Type.GetTypeCode(typeConverted);
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValue;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return default(System.TypeCode);
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetTypeFromCLSID")]
- internal static void* /* System.Type */ System_Type_GetTypeFromCLSID(void* /* System.Guid */ clsid, void** /* System.Exception */ __outException)
- {
- System.Guid clsidConverted = InteropUtils.GetInstance(clsid);
-
- try {
- System.Type __returnValue = System.Type.GetTypeFromCLSID(clsidConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetTypeFromCLSID_1")]
- internal static void* /* System.Type */ System_Type_GetTypeFromCLSID_1(void* /* System.Guid */ clsid, byte /* System.Boolean */ throwOnError, void** /* System.Exception */ __outException)
- {
- System.Guid clsidConverted = InteropUtils.GetInstance(clsid);
- System.Boolean throwOnErrorConverted = throwOnError.ToBool();
-
- try {
- System.Type __returnValue = System.Type.GetTypeFromCLSID(clsidConverted, throwOnErrorConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetTypeFromCLSID_2")]
- internal static void* /* System.Type */ System_Type_GetTypeFromCLSID_2(void* /* System.Guid */ clsid, void* /* System.String */ server, void** /* System.Exception */ __outException)
- {
- System.Guid clsidConverted = InteropUtils.GetInstance(clsid);
- System.String serverConverted = InteropUtils.GetInstance(server);
-
- try {
- System.Type __returnValue = System.Type.GetTypeFromCLSID(clsidConverted, serverConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetTypeFromCLSID_3")]
- internal static void* /* System.Type */ System_Type_GetTypeFromCLSID_3(void* /* System.Guid */ clsid, void* /* System.String */ server, byte /* System.Boolean */ throwOnError, void** /* System.Exception */ __outException)
- {
- System.Guid clsidConverted = InteropUtils.GetInstance(clsid);
- System.String serverConverted = InteropUtils.GetInstance(server);
- System.Boolean throwOnErrorConverted = throwOnError.ToBool();
-
- try {
- System.Type __returnValue = System.Type.GetTypeFromCLSID(clsidConverted, serverConverted, throwOnErrorConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetTypeFromProgID")]
- internal static void* /* System.Type */ System_Type_GetTypeFromProgID(void* /* System.String */ progID, void** /* System.Exception */ __outException)
- {
- System.String progIDConverted = InteropUtils.GetInstance(progID);
-
- try {
- System.Type __returnValue = System.Type.GetTypeFromProgID(progIDConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetTypeFromProgID_1")]
- internal static void* /* System.Type */ System_Type_GetTypeFromProgID_1(void* /* System.String */ progID, byte /* System.Boolean */ throwOnError, void** /* System.Exception */ __outException)
- {
- System.String progIDConverted = InteropUtils.GetInstance(progID);
- System.Boolean throwOnErrorConverted = throwOnError.ToBool();
-
- try {
- System.Type __returnValue = System.Type.GetTypeFromProgID(progIDConverted, throwOnErrorConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetTypeFromProgID_2")]
- internal static void* /* System.Type */ System_Type_GetTypeFromProgID_2(void* /* System.String */ progID, void* /* System.String */ server, void** /* System.Exception */ __outException)
- {
- System.String progIDConverted = InteropUtils.GetInstance(progID);
- System.String serverConverted = InteropUtils.GetInstance(server);
-
- try {
- System.Type __returnValue = System.Type.GetTypeFromProgID(progIDConverted, serverConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetTypeFromProgID_3")]
- internal static void* /* System.Type */ System_Type_GetTypeFromProgID_3(void* /* System.String */ progID, void* /* System.String */ server, byte /* System.Boolean */ throwOnError, void** /* System.Exception */ __outException)
- {
- System.String progIDConverted = InteropUtils.GetInstance(progID);
- System.String serverConverted = InteropUtils.GetInstance(server);
- System.Boolean throwOnErrorConverted = throwOnError.ToBool();
-
- try {
- System.Type __returnValue = System.Type.GetTypeFromProgID(progIDConverted, serverConverted, throwOnErrorConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_InvokeMember")]
- internal static void* /* System.Object */ System_Type_InvokeMember(void* /* System.Type */ __self, void* /* System.String */ name, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ invokeAttr, void* /* System.Reflection.Binder */ binder, void* /* System.Object */ target, void* /* System.Object[] */ args, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Reflection.Binder binderConverted = InteropUtils.GetInstance(binder);
- System.Object targetConverted = InteropUtils.GetInstance(target);
- System.Object[] argsConverted = InteropUtils.GetInstance(args);
-
- try {
- System.Object __returnValue = __selfConverted.InvokeMember(nameConverted, invokeAttr, binderConverted, targetConverted, argsConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_InvokeMember_1")]
- internal static void* /* System.Object */ System_Type_InvokeMember_1(void* /* System.Type */ __self, void* /* System.String */ name, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ invokeAttr, void* /* System.Reflection.Binder */ binder, void* /* System.Object */ target, void* /* System.Object[] */ args, void* /* System.Globalization.CultureInfo */ culture, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Reflection.Binder binderConverted = InteropUtils.GetInstance(binder);
- System.Object targetConverted = InteropUtils.GetInstance(target);
- System.Object[] argsConverted = InteropUtils.GetInstance(args);
- System.Globalization.CultureInfo cultureConverted = InteropUtils.GetInstance(culture);
-
- try {
- System.Object __returnValue = __selfConverted.InvokeMember(nameConverted, invokeAttr, binderConverted, targetConverted, argsConverted, cultureConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_InvokeMember_2")]
- internal static void* /* System.Object */ System_Type_InvokeMember_2(void* /* System.Type */ __self, void* /* System.String */ name, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ invokeAttr, void* /* System.Reflection.Binder */ binder, void* /* System.Object */ target, void* /* System.Object[] */ args, void* /* System.Reflection.ParameterModifier[] */ modifiers, void* /* System.Globalization.CultureInfo */ culture, void* /* System.String[] */ namedParameters, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Reflection.Binder binderConverted = InteropUtils.GetInstance(binder);
- System.Object targetConverted = InteropUtils.GetInstance(target);
- System.Object[] argsConverted = InteropUtils.GetInstance(args);
- System.Reflection.ParameterModifier[] modifiersConverted = InteropUtils.GetInstance(modifiers);
- System.Globalization.CultureInfo cultureConverted = InteropUtils.GetInstance(culture);
- System.String[] namedParametersConverted = InteropUtils.GetInstance(namedParameters);
-
- try {
- System.Object __returnValue = __selfConverted.InvokeMember(nameConverted, invokeAttr, binderConverted, targetConverted, argsConverted, modifiersConverted, cultureConverted, namedParametersConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetInterface")]
- internal static void* /* System.Type */ System_Type_GetInterface(void* /* System.Type */ __self, void* /* System.String */ name, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
-
- try {
- System.Type __returnValue = __selfConverted.GetInterface(nameConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetInterface_1")]
- internal static void* /* System.Type */ System_Type_GetInterface_1(void* /* System.Type */ __self, void* /* System.String */ name, byte /* System.Boolean */ ignoreCase, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.String nameConverted = InteropUtils.GetInstance(name);
- System.Boolean ignoreCaseConverted = ignoreCase.ToBool();
-
- try {
- System.Type __returnValue = __selfConverted.GetInterface(nameConverted, ignoreCaseConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetInterfaces")]
- internal static void* /* System.Type[] */ System_Type_GetInterfaces(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type[] __returnValue = __selfConverted.GetInterfaces();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetInterfaceMap")]
- internal static void* /* System.Reflection.InterfaceMapping */ System_Type_GetInterfaceMap(void* /* System.Type */ __self, void* /* System.Type */ interfaceType, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Type interfaceTypeConverted = InteropUtils.GetInstance(interfaceType);
-
- try {
- System.Reflection.InterfaceMapping __returnValue = __selfConverted.GetInterfaceMap(interfaceTypeConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsInstanceOfType")]
- internal static byte /* System.Boolean */ System_Type_IsInstanceOfType(void* /* System.Type */ __self, void* /* System.Object */ o, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Object oConverted = InteropUtils.GetInstance(o);
-
- try {
- System.Boolean __returnValue = __selfConverted.IsInstanceOfType(oConverted);
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsEquivalentTo")]
- internal static byte /* System.Boolean */ System_Type_IsEquivalentTo(void* /* System.Type */ __self, void* /* System.Type */ other, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Type otherConverted = InteropUtils.GetInstance(other);
-
- try {
- System.Boolean __returnValue = __selfConverted.IsEquivalentTo(otherConverted);
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetEnumUnderlyingType")]
- internal static void* /* System.Type */ System_Type_GetEnumUnderlyingType(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type __returnValue = __selfConverted.GetEnumUnderlyingType();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetEnumValues")]
- internal static void* /* System.Array */ System_Type_GetEnumValues(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Array __returnValue = __selfConverted.GetEnumValues();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetEnumValuesAsUnderlyingType")]
- internal static void* /* System.Array */ System_Type_GetEnumValuesAsUnderlyingType(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Array __returnValue = __selfConverted.GetEnumValuesAsUnderlyingType();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_MakeArrayType")]
- internal static void* /* System.Type */ System_Type_MakeArrayType(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type __returnValue = __selfConverted.MakeArrayType();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_MakeArrayType_1")]
- internal static void* /* System.Type */ System_Type_MakeArrayType_1(void* /* System.Type */ __self, int /* System.Int32 */ rank, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type __returnValue = __selfConverted.MakeArrayType(rank);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_MakeByRefType")]
- internal static void* /* System.Type */ System_Type_MakeByRefType(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type __returnValue = __selfConverted.MakeByRefType();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_MakeGenericType")]
- internal static void* /* System.Type */ System_Type_MakeGenericType(void* /* System.Type */ __self, void* /* System.Type[] */ typeArguments, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Type[] typeArgumentsConverted = InteropUtils.GetInstance(typeArguments);
-
- try {
- System.Type __returnValue = __selfConverted.MakeGenericType(typeArgumentsConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_MakePointerType")]
- internal static void* /* System.Type */ System_Type_MakePointerType(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type __returnValue = __selfConverted.MakePointerType();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_MakeGenericSignatureType")]
- internal static void* /* System.Type */ System_Type_MakeGenericSignatureType(void* /* System.Type */ genericTypeDefinition, void* /* System.Type[] */ typeArguments, void** /* System.Exception */ __outException)
- {
- System.Type genericTypeDefinitionConverted = InteropUtils.GetInstance(genericTypeDefinition);
- System.Type[] typeArgumentsConverted = InteropUtils.GetInstance(typeArguments);
-
- try {
- System.Type __returnValue = System.Type.MakeGenericSignatureType(genericTypeDefinitionConverted, typeArgumentsConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_MakeGenericMethodParameter")]
- internal static void* /* System.Type */ System_Type_MakeGenericMethodParameter(int /* System.Int32 */ position, void** /* System.Exception */ __outException)
- {
-
- try {
- System.Type __returnValue = System.Type.MakeGenericMethodParameter(position);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_ToString")]
- internal static void* /* System.String */ System_Type_ToString(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.String __returnValue = __selfConverted.ToString();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_Equals")]
- internal static byte /* System.Boolean */ System_Type_Equals(void* /* System.Type */ __self, void* /* System.Object */ o, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Object oConverted = InteropUtils.GetInstance(o);
-
- try {
- System.Boolean __returnValue = __selfConverted.Equals(oConverted);
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetHashCode")]
- internal static int /* System.Int32 */ System_Type_GetHashCode(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Int32 __returnValue = __selfConverted.GetHashCode();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValue;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return -1;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_Equals_1")]
- internal static byte /* System.Boolean */ System_Type_Equals_1(void* /* System.Type */ __self, void* /* System.Type */ o, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Type oConverted = InteropUtils.GetInstance(o);
-
- try {
- System.Boolean __returnValue = __selfConverted.Equals(oConverted);
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_ReflectionOnlyGetType")]
- internal static void* /* System.Type */ System_Type_ReflectionOnlyGetType(void* /* System.String */ typeName, byte /* System.Boolean */ throwIfNotFound, byte /* System.Boolean */ ignoreCase, void** /* System.Exception */ __outException)
- {
- System.String typeNameConverted = InteropUtils.GetInstance(typeName);
- System.Boolean throwIfNotFoundConverted = throwIfNotFound.ToBool();
- System.Boolean ignoreCaseConverted = ignoreCase.ToBool();
-
- try {
- System.Type __returnValue = System.Type.ReflectionOnlyGetType(typeNameConverted, throwIfNotFoundConverted, ignoreCaseConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsEnumDefined")]
- internal static byte /* System.Boolean */ System_Type_IsEnumDefined(void* /* System.Type */ __self, void* /* System.Object */ value, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Object valueConverted = InteropUtils.GetInstance(value);
-
- try {
- System.Boolean __returnValue = __selfConverted.IsEnumDefined(valueConverted);
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetEnumName")]
- internal static void* /* System.String */ System_Type_GetEnumName(void* /* System.Type */ __self, void* /* System.Object */ value, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Object valueConverted = InteropUtils.GetInstance(value);
-
- try {
- System.String __returnValue = __selfConverted.GetEnumName(valueConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GetEnumNames")]
- internal static void* /* System.String[] */ System_Type_GetEnumNames(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.String[] __returnValue = __selfConverted.GetEnumNames();
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_FindInterfaces")]
- internal static void* /* System.Type[] */ System_Type_FindInterfaces(void* /* System.Type */ __self, void* /* System.Reflection.TypeFilter */ filter, void* /* System.Object */ filterCriteria, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Reflection.TypeFilter filterConverted = InteropUtils.GetInstance(filter)?.Trampoline;
- System.Object filterCriteriaConverted = InteropUtils.GetInstance(filterCriteria);
-
- try {
- System.Type[] __returnValue = __selfConverted.FindInterfaces(filterConverted, filterCriteriaConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_FindMembers")]
- internal static void* /* System.Reflection.MemberInfo[] */ System_Type_FindMembers(void* /* System.Type */ __self, System.Reflection.MemberTypes /* System.Reflection.MemberTypes */ memberType, System.Reflection.BindingFlags /* System.Reflection.BindingFlags */ bindingAttr, void* /* System.Reflection.MemberFilter */ filter, void* /* System.Object */ filterCriteria, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Reflection.MemberFilter filterConverted = InteropUtils.GetInstance(filter)?.Trampoline;
- System.Object filterCriteriaConverted = InteropUtils.GetInstance(filterCriteria);
-
- try {
- System.Reflection.MemberInfo[] __returnValue = __selfConverted.FindMembers(memberType, bindingAttr, filterConverted, filterCriteriaConverted);
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsSubclassOf")]
- internal static byte /* System.Boolean */ System_Type_IsSubclassOf(void* /* System.Type */ __self, void* /* System.Type */ c, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Type cConverted = InteropUtils.GetInstance(c);
-
- try {
- System.Boolean __returnValue = __selfConverted.IsSubclassOf(cConverted);
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsAssignableFrom")]
- internal static byte /* System.Boolean */ System_Type_IsAssignableFrom(void* /* System.Type */ __self, void* /* System.Type */ c, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
- System.Type cConverted = InteropUtils.GetInstance(c);
-
- try {
- System.Boolean __returnValue = __selfConverted.IsAssignableFrom(cConverted);
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsInterface_Get")]
- internal static byte /* System.Boolean */ System_Type_IsInterface_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsInterface;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_MemberType_Get")]
- internal static System.Reflection.MemberTypes /* System.Reflection.MemberTypes */ System_Type_MemberType_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.MemberTypes __returnValue = __selfConverted.MemberType;
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValue;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return default(System.Reflection.MemberTypes);
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_Namespace_Get")]
- internal static void* /* System.String */ System_Type_Namespace_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.String __returnValue = __selfConverted.Namespace;
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_AssemblyQualifiedName_Get")]
- internal static void* /* System.String */ System_Type_AssemblyQualifiedName_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.String __returnValue = __selfConverted.AssemblyQualifiedName;
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_FullName_Get")]
- internal static void* /* System.String */ System_Type_FullName_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.String __returnValue = __selfConverted.FullName;
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_Assembly_Get")]
- internal static void* /* System.Reflection.Assembly */ System_Type_Assembly_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.Assembly __returnValue = __selfConverted.Assembly;
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_Module_Get")]
- internal static void* /* System.Reflection.Module */ System_Type_Module_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.Module __returnValue = __selfConverted.Module;
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsNested_Get")]
- internal static byte /* System.Boolean */ System_Type_IsNested_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsNested;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_DeclaringType_Get")]
- internal static void* /* System.Type */ System_Type_DeclaringType_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type __returnValue = __selfConverted.DeclaringType;
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_DeclaringMethod_Get")]
- internal static void* /* System.Reflection.MethodBase */ System_Type_DeclaringMethod_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.MethodBase __returnValue = __selfConverted.DeclaringMethod;
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_ReflectedType_Get")]
- internal static void* /* System.Type */ System_Type_ReflectedType_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type __returnValue = __selfConverted.ReflectedType;
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_UnderlyingSystemType_Get")]
- internal static void* /* System.Type */ System_Type_UnderlyingSystemType_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type __returnValue = __selfConverted.UnderlyingSystemType;
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsTypeDefinition_Get")]
- internal static byte /* System.Boolean */ System_Type_IsTypeDefinition_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsTypeDefinition;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsArray_Get")]
- internal static byte /* System.Boolean */ System_Type_IsArray_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsArray;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsByRef_Get")]
- internal static byte /* System.Boolean */ System_Type_IsByRef_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsByRef;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsPointer_Get")]
- internal static byte /* System.Boolean */ System_Type_IsPointer_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsPointer;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsConstructedGenericType_Get")]
- internal static byte /* System.Boolean */ System_Type_IsConstructedGenericType_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsConstructedGenericType;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsGenericParameter_Get")]
- internal static byte /* System.Boolean */ System_Type_IsGenericParameter_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsGenericParameter;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsGenericTypeParameter_Get")]
- internal static byte /* System.Boolean */ System_Type_IsGenericTypeParameter_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsGenericTypeParameter;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsGenericMethodParameter_Get")]
- internal static byte /* System.Boolean */ System_Type_IsGenericMethodParameter_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsGenericMethodParameter;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsGenericType_Get")]
- internal static byte /* System.Boolean */ System_Type_IsGenericType_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsGenericType;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsGenericTypeDefinition_Get")]
- internal static byte /* System.Boolean */ System_Type_IsGenericTypeDefinition_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsGenericTypeDefinition;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsSZArray_Get")]
- internal static byte /* System.Boolean */ System_Type_IsSZArray_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsSZArray;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsVariableBoundArray_Get")]
- internal static byte /* System.Boolean */ System_Type_IsVariableBoundArray_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsVariableBoundArray;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsByRefLike_Get")]
- internal static byte /* System.Boolean */ System_Type_IsByRefLike_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsByRefLike;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsFunctionPointer_Get")]
- internal static byte /* System.Boolean */ System_Type_IsFunctionPointer_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsFunctionPointer;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsUnmanagedFunctionPointer_Get")]
- internal static byte /* System.Boolean */ System_Type_IsUnmanagedFunctionPointer_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsUnmanagedFunctionPointer;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_HasElementType_Get")]
- internal static byte /* System.Boolean */ System_Type_HasElementType_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.HasElementType;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GenericTypeArguments_Get")]
- internal static void* /* System.Type[] */ System_Type_GenericTypeArguments_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Type[] __returnValue = __selfConverted.GenericTypeArguments;
- void* __returnValueNative = __returnValue.AllocateGCHandleAndGetAddress();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return null;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GenericParameterPosition_Get")]
- internal static int /* System.Int32 */ System_Type_GenericParameterPosition_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Int32 __returnValue = __selfConverted.GenericParameterPosition;
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValue;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return -1;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_GenericParameterAttributes_Get")]
- internal static System.Reflection.GenericParameterAttributes /* System.Reflection.GenericParameterAttributes */ System_Type_GenericParameterAttributes_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.GenericParameterAttributes __returnValue = __selfConverted.GenericParameterAttributes;
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValue;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return default(System.Reflection.GenericParameterAttributes);
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_Attributes_Get")]
- internal static System.Reflection.TypeAttributes /* System.Reflection.TypeAttributes */ System_Type_Attributes_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Reflection.TypeAttributes __returnValue = __selfConverted.Attributes;
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValue;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return default(System.Reflection.TypeAttributes);
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsAbstract_Get")]
- internal static byte /* System.Boolean */ System_Type_IsAbstract_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsAbstract;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsImport_Get")]
- internal static byte /* System.Boolean */ System_Type_IsImport_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsImport;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsSealed_Get")]
- internal static byte /* System.Boolean */ System_Type_IsSealed_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsSealed;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsSpecialName_Get")]
- internal static byte /* System.Boolean */ System_Type_IsSpecialName_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance(__self);
-
-
- try {
- System.Boolean __returnValue = __selfConverted.IsSpecialName;
- byte __returnValueNative = __returnValue.ToCBool();
-
- if (__outException is not null) {
- *__outException = null;
- }
-
- return __returnValueNative;
- } catch (Exception __exception) {
- if (__outException is not null) {
- void* __exceptionHandleAddress = __exception.AllocateGCHandleAndGetAddress();
-
- *__outException = __exceptionHandleAddress;
- }
-
- return 0;
- } finally {
- }
- }
-
-
- [UnmanagedCallersOnly(EntryPoint = "System_Type_IsClass_Get")]
- internal static byte /* System.Boolean */ System_Type_IsClass_Get(void* /* System.Type */ __self, void** /* System.Exception */ __outException)
- {
- if (__self is null) {
- throw new ArgumentNullException(nameof(__self));
- }
-
- System.Type __selfConverted = InteropUtils.GetInstance