File: Generated\361d1da7f942c932\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.cs
Project: Microsoft.Diagnostics.DataContractReader.Legacy.csproj (Microsoft.Diagnostics.DataContractReader.Legacy)
// <auto-generated />
#pragma warning disable CS0612, CS0618, CS0649, CS1591
 
[global::System.Runtime.InteropServices.StructLayoutAttribute(global::System.Runtime.InteropServices.LayoutKind.Sequential)]
file struct InterfaceImplementationVtable
{
    public unsafe delegate* unmanaged[MemberFunction]<void*, global::System.Guid*, void**, int> QueryInterface_0;
    public unsafe delegate* unmanaged[MemberFunction]<void*, uint> AddRef_1;
    public unsafe delegate* unmanaged[MemberFunction]<void*, uint> Release_2;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, int> StartEnumMethodInstances_3;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, void**, int> EnumMethodInstance_4;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, int> EndEnumMethodInstances_5;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, char*, uint, ulong*, int> StartEnumMethodInstancesByName_6;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, void**, int> EnumMethodInstanceByName_7;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, int> EndEnumMethodInstancesByName_8;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, int> GetNumStaticFields_9;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, void*, void**, uint, uint*, char*, uint*, int> GetStaticFieldByIndex_10;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, char*, uint, void*, ulong*, int> StartEnumStaticFieldsByName_11;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, void**, int> EnumStaticFieldByName_12;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, int> EndEnumStaticFieldsByName_13;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, int> GetNumTypeArguments_14;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, void**, int> GetTypeArgumentByIndex_15;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, uint*, char*, int> GetName_16;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void**, int> GetModule_17;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void**, int> GetDefinition_18;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, int> GetFlags_19;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void*, int> IsSameObject_20;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, byte*, uint, byte*, int> Request_21;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, int> GetNumStaticFields2_22;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, void*, ulong*, int> StartEnumStaticFields_23;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, void**, int> EnumStaticField_24;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, int> EndEnumStaticFields_25;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, char*, uint, uint, void*, ulong*, int> StartEnumStaticFieldsByName2_26;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, void**, int> EnumStaticFieldByName2_27;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, int> EndEnumStaticFieldsByName2_28;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, void*, void**, uint, uint*, char*, int> GetStaticFieldByToken_29;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void**, int> GetBase_30;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, void**, uint, uint*, char*, void**, uint*, int> EnumStaticField2_31;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, void**, void**, uint*, int> EnumStaticFieldByName3_32;
    public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void*, uint, void*, void**, uint, uint*, char*, int> GetStaticFieldByToken2_33;
}
 
file sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([145, 141, 7, 77, 179, 156, 13, 75, 151, 172, 40, 200, 165, 168, 37, 151]);
    public static unsafe void** ManagedVirtualMethodTable
    {
        get
        {
            unsafe
            {
                return (void**)global::System.Runtime.CompilerServices.Unsafe.AsPointer(in InterfaceImplementation.Vtable);
            }
        }
    }
}
 
[global::System.Runtime.InteropServices.DynamicInterfaceCastableImplementationAttribute]
file unsafe interface InterfaceImplementation : global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance
{
    [global::System.Runtime.CompilerServices.FixedAddressValueTypeAttribute]
    public static readonly InterfaceImplementationVtable Vtable;
 
    static InterfaceImplementation()
    {
        unsafe
        {
            global::System.Runtime.InteropServices.ComWrappers.GetIUnknownImpl(
                out *(nint*)&((InterfaceImplementationVtable*)global::System.Runtime.CompilerServices.Unsafe.AsPointer(ref Vtable))->QueryInterface_0,
                out *(nint*)&((InterfaceImplementationVtable*)global::System.Runtime.CompilerServices.Unsafe.AsPointer(ref Vtable))->AddRef_1,
                out *(nint*)&((InterfaceImplementationVtable*)global::System.Runtime.CompilerServices.Unsafe.AsPointer(ref Vtable))->Release_2);
 
            Vtable.StartEnumMethodInstances_3 = &ABI_StartEnumMethodInstances;
            Vtable.EnumMethodInstance_4 = &ABI_EnumMethodInstance;
            Vtable.EndEnumMethodInstances_5 = &ABI_EndEnumMethodInstances;
            Vtable.StartEnumMethodInstancesByName_6 = &ABI_StartEnumMethodInstancesByName;
            Vtable.EnumMethodInstanceByName_7 = &ABI_EnumMethodInstanceByName;
            Vtable.EndEnumMethodInstancesByName_8 = &ABI_EndEnumMethodInstancesByName;
            Vtable.GetNumStaticFields_9 = &ABI_GetNumStaticFields;
            Vtable.GetStaticFieldByIndex_10 = &ABI_GetStaticFieldByIndex;
            Vtable.StartEnumStaticFieldsByName_11 = &ABI_StartEnumStaticFieldsByName;
            Vtable.EnumStaticFieldByName_12 = &ABI_EnumStaticFieldByName;
            Vtable.EndEnumStaticFieldsByName_13 = &ABI_EndEnumStaticFieldsByName;
            Vtable.GetNumTypeArguments_14 = &ABI_GetNumTypeArguments;
            Vtable.GetTypeArgumentByIndex_15 = &ABI_GetTypeArgumentByIndex;
            Vtable.GetName_16 = &ABI_GetName;
            Vtable.GetModule_17 = &ABI_GetModule;
            Vtable.GetDefinition_18 = &ABI_GetDefinition;
            Vtable.GetFlags_19 = &ABI_GetFlags;
            Vtable.IsSameObject_20 = &ABI_IsSameObject;
            Vtable.Request_21 = &ABI_Request;
            Vtable.GetNumStaticFields2_22 = &ABI_GetNumStaticFields2;
            Vtable.StartEnumStaticFields_23 = &ABI_StartEnumStaticFields;
            Vtable.EnumStaticField_24 = &ABI_EnumStaticField;
            Vtable.EndEnumStaticFields_25 = &ABI_EndEnumStaticFields;
            Vtable.StartEnumStaticFieldsByName2_26 = &ABI_StartEnumStaticFieldsByName2;
            Vtable.EnumStaticFieldByName2_27 = &ABI_EnumStaticFieldByName2;
            Vtable.EndEnumStaticFieldsByName2_28 = &ABI_EndEnumStaticFieldsByName2;
            Vtable.GetStaticFieldByToken_29 = &ABI_GetStaticFieldByToken;
            Vtable.GetBase_30 = &ABI_GetBase;
            Vtable.EnumStaticField2_31 = &ABI_EnumStaticField2;
            Vtable.EnumStaticFieldByName3_32 = &ABI_EnumStaticFieldByName3;
            Vtable.GetStaticFieldByToken2_33 = &ABI_GetStaticFieldByToken2;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.StartEnumMethodInstances(ulong* handle)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, int>)__vtable[3]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, handle);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_StartEnumMethodInstances(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.StartEnumMethodInstances(handle);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.EnumMethodInstance(ulong* handle, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance> methodInstance)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, void**, int>)__vtable[4]);
            {
                void** __methodInstance_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance>.ManagedToUnmanaged __methodInstance_native__marshaller = new();
                try
                {
                    // Marshal - Convert managed data to native data.
                    __methodInstance_native__marshaller.FromManaged(methodInstance);
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __methodInstance_native = __methodInstance_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, handle, __methodInstance_native);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    __methodInstance_native__marshaller.OnInvoked();
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    __methodInstance_native__marshaller.Free();
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_EnumMethodInstance(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle, void** __methodInstance_native)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance> methodInstance = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance>.UnmanagedToManaged __methodInstance_native__marshaller = new();
            try
            {
                // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
                __methodInstance_native__marshaller.FromUnmanaged(__methodInstance_native);
                // Unmarshal - Convert native data to managed data.
                methodInstance = __methodInstance_native__marshaller.ToManaged();
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.EnumMethodInstance(handle, methodInstance);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __methodInstance_native__marshaller.Free();
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.EndEnumMethodInstances(ulong handle)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, int>)__vtable[5]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, handle);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_EndEnumMethodInstances(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong handle)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.EndEnumMethodInstances(handle);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.StartEnumMethodInstancesByName(char* name, uint flags, ulong* handle)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, char*, uint, ulong*, int>)__vtable[6]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, name, flags, handle);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_StartEnumMethodInstancesByName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, char* name, uint flags, ulong* handle)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.StartEnumMethodInstancesByName(name, flags, handle);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.EnumMethodInstanceByName(ulong* handle, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance> @method)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, void**, int>)__vtable[7]);
            {
                void** __method_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance>.ManagedToUnmanaged __method_native__marshaller = new();
                try
                {
                    // Marshal - Convert managed data to native data.
                    __method_native__marshaller.FromManaged(@method);
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __method_native = __method_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, handle, __method_native);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    __method_native__marshaller.OnInvoked();
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    __method_native__marshaller.Free();
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_EnumMethodInstanceByName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle, void** __method_native)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance> @method = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance>.UnmanagedToManaged __method_native__marshaller = new();
            try
            {
                // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
                __method_native__marshaller.FromUnmanaged(__method_native);
                // Unmarshal - Convert native data to managed data.
                @method = __method_native__marshaller.ToManaged();
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.EnumMethodInstanceByName(handle, @method);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __method_native__marshaller.Free();
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.EndEnumMethodInstancesByName(ulong handle)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, int>)__vtable[8]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, handle);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_EndEnumMethodInstancesByName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong handle)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.EndEnumMethodInstancesByName(handle);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.GetNumStaticFields(uint* numFields)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int>)__vtable[9]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, numFields);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_GetNumStaticFields(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* numFields)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.GetNumStaticFields(numFields);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.GetStaticFieldByIndex(uint index, global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask tlsTask, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> @field, uint bufLen, uint* nameLen, char* nameBuf, uint* token)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, void*, void**, uint, uint*, char*, uint*, int>)__vtable[10]);
            {
                void* __tlsTask_native = default;
                void** __field_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __field_native__marshaller = new();
                try
                {
                    // Marshal - Convert managed data to native data.
                    __field_native__marshaller.FromManaged(@field);
                    __tlsTask_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.ConvertToUnmanaged(tlsTask);
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __field_native = __field_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, index, __tlsTask_native, __field_native, bufLen, nameLen, nameBuf, token);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    __field_native__marshaller.OnInvoked();
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    __field_native__marshaller.Free();
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.Free(__tlsTask_native);
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_GetStaticFieldByIndex(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint index, void* __tlsTask_native, void** __field_native, uint bufLen, uint* nameLen, char* nameBuf, uint* token)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask tlsTask = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> @field = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __field_native__marshaller = new();
            try
            {
                // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
                __field_native__marshaller.FromUnmanaged(__field_native);
                // Unmarshal - Convert native data to managed data.
                @field = __field_native__marshaller.ToManaged();
                tlsTask = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.ConvertToManaged(__tlsTask_native);
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.GetStaticFieldByIndex(index, tlsTask, @field, bufLen, nameLen, nameBuf, token);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __field_native__marshaller.Free();
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.StartEnumStaticFieldsByName(char* name, uint flags, global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask tlsTask, ulong* handle)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, char*, uint, void*, ulong*, int>)__vtable[11]);
            {
                void* __tlsTask_native = default;
                int __retVal = default;
                try
                {
                    // Marshal - Convert managed data to native data.
                    __tlsTask_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.ConvertToUnmanaged(tlsTask);
                    {
                        __retVal = __target(__this, name, flags, __tlsTask_native, handle);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.Free(__tlsTask_native);
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_StartEnumStaticFieldsByName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, char* name, uint flags, void* __tlsTask_native, ulong* handle)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask tlsTask = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                tlsTask = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.ConvertToManaged(__tlsTask_native);
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.StartEnumStaticFieldsByName(name, flags, tlsTask, handle);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.EnumStaticFieldByName(ulong* handle, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> value)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, void**, int>)__vtable[12]);
            {
                void** __value_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __value_native__marshaller = new();
                try
                {
                    // Marshal - Convert managed data to native data.
                    __value_native__marshaller.FromManaged(value);
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __value_native = __value_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, handle, __value_native);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    __value_native__marshaller.OnInvoked();
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    __value_native__marshaller.Free();
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_EnumStaticFieldByName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle, void** __value_native)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> value = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __value_native__marshaller = new();
            try
            {
                // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
                __value_native__marshaller.FromUnmanaged(__value_native);
                // Unmarshal - Convert native data to managed data.
                value = __value_native__marshaller.ToManaged();
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.EnumStaticFieldByName(handle, value);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __value_native__marshaller.Free();
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.EndEnumStaticFieldsByName(ulong handle)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, int>)__vtable[13]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, handle);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_EndEnumStaticFieldsByName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong handle)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.EndEnumStaticFieldsByName(handle);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.GetNumTypeArguments(uint* numTypeArgs)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int>)__vtable[14]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, numTypeArgs);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_GetNumTypeArguments(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* numTypeArgs)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.GetNumTypeArguments(numTypeArgs);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.GetTypeArgumentByIndex(uint index, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance> typeArg)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, void**, int>)__vtable[15]);
            {
                void** __typeArg_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.ManagedToUnmanaged __typeArg_native__marshaller = new();
                try
                {
                    // Marshal - Convert managed data to native data.
                    __typeArg_native__marshaller.FromManaged(typeArg);
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __typeArg_native = __typeArg_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, index, __typeArg_native);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    __typeArg_native__marshaller.OnInvoked();
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    __typeArg_native__marshaller.Free();
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_GetTypeArgumentByIndex(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint index, void** __typeArg_native)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance> typeArg = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.UnmanagedToManaged __typeArg_native__marshaller = new();
            try
            {
                // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
                __typeArg_native__marshaller.FromUnmanaged(__typeArg_native);
                // Unmarshal - Convert native data to managed data.
                typeArg = __typeArg_native__marshaller.ToManaged();
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.GetTypeArgumentByIndex(index, typeArg);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __typeArg_native__marshaller.Free();
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.GetName(uint flags, uint bufLen, uint* nameLen, char* nameBuf)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, uint*, char*, int>)__vtable[16]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, flags, bufLen, nameLen, nameBuf);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_GetName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint flags, uint bufLen, uint* nameLen, char* nameBuf)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.GetName(flags, bufLen, nameLen, nameBuf);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.GetModule(global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule> mod)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, void**, int>)__vtable[17]);
            {
                void** __mod_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.ManagedToUnmanaged __mod_native__marshaller = new();
                try
                {
                    // Marshal - Convert managed data to native data.
                    __mod_native__marshaller.FromManaged(mod);
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __mod_native = __mod_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, __mod_native);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    __mod_native__marshaller.OnInvoked();
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    __mod_native__marshaller.Free();
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_GetModule(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void** __mod_native)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule> mod = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.UnmanagedToManaged __mod_native__marshaller = new();
            try
            {
                // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
                __mod_native__marshaller.FromUnmanaged(__mod_native);
                // Unmarshal - Convert native data to managed data.
                mod = __mod_native__marshaller.ToManaged();
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.GetModule(mod);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __mod_native__marshaller.Free();
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.GetDefinition(global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeDefinition> typeDefinition)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, void**, int>)__vtable[18]);
            {
                void** __typeDefinition_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeDefinition>.ManagedToUnmanaged __typeDefinition_native__marshaller = new();
                try
                {
                    // Marshal - Convert managed data to native data.
                    __typeDefinition_native__marshaller.FromManaged(typeDefinition);
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __typeDefinition_native = __typeDefinition_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, __typeDefinition_native);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    __typeDefinition_native__marshaller.OnInvoked();
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    __typeDefinition_native__marshaller.Free();
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_GetDefinition(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void** __typeDefinition_native)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeDefinition> typeDefinition = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeDefinition>.UnmanagedToManaged __typeDefinition_native__marshaller = new();
            try
            {
                // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
                __typeDefinition_native__marshaller.FromUnmanaged(__typeDefinition_native);
                // Unmarshal - Convert native data to managed data.
                typeDefinition = __typeDefinition_native__marshaller.ToManaged();
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.GetDefinition(typeDefinition);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __typeDefinition_native__marshaller.Free();
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.GetFlags(uint* flags)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int>)__vtable[19]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, flags);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_GetFlags(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* flags)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.GetFlags(flags);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.IsSameObject(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @type)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, int>)__vtable[20]);
            {
                void* __type_native = default;
                int __retVal = default;
                try
                {
                    // Marshal - Convert managed data to native data.
                    __type_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.ConvertToUnmanaged(@type);
                    {
                        __retVal = __target(__this, __type_native);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.Free(__type_native);
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_IsSameObject(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void* __type_native)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @type = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @type = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.ConvertToManaged(__type_native);
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.IsSameObject(@type);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.Request(uint reqCode, uint inBufferSize, byte* inBuffer, uint outBufferSize, byte* outBuffer)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, byte*, uint, byte*, int>)__vtable[21]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, reqCode, inBufferSize, inBuffer, outBufferSize, outBuffer);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_Request(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint reqCode, uint inBufferSize, byte* inBuffer, uint outBufferSize, byte* outBuffer)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.Request(reqCode, inBufferSize, inBuffer, outBufferSize, outBuffer);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.GetNumStaticFields2(uint flags, uint* numFields)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, int>)__vtable[22]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, flags, numFields);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_GetNumStaticFields2(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint flags, uint* numFields)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.GetNumStaticFields2(flags, numFields);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.StartEnumStaticFields(uint flags, global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask tlsTask, ulong* handle)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, void*, ulong*, int>)__vtable[23]);
            {
                void* __tlsTask_native = default;
                int __retVal = default;
                try
                {
                    // Marshal - Convert managed data to native data.
                    __tlsTask_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.ConvertToUnmanaged(tlsTask);
                    {
                        __retVal = __target(__this, flags, __tlsTask_native, handle);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.Free(__tlsTask_native);
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_StartEnumStaticFields(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint flags, void* __tlsTask_native, ulong* handle)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask tlsTask = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                tlsTask = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.ConvertToManaged(__tlsTask_native);
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.StartEnumStaticFields(flags, tlsTask, handle);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.EnumStaticField(ulong* handle, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> value)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, void**, int>)__vtable[24]);
            {
                void** __value_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __value_native__marshaller = new();
                try
                {
                    // Marshal - Convert managed data to native data.
                    __value_native__marshaller.FromManaged(value);
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __value_native = __value_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, handle, __value_native);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    __value_native__marshaller.OnInvoked();
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    __value_native__marshaller.Free();
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_EnumStaticField(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle, void** __value_native)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> value = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __value_native__marshaller = new();
            try
            {
                // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
                __value_native__marshaller.FromUnmanaged(__value_native);
                // Unmarshal - Convert native data to managed data.
                value = __value_native__marshaller.ToManaged();
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.EnumStaticField(handle, value);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __value_native__marshaller.Free();
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.EndEnumStaticFields(ulong handle)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, int>)__vtable[25]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, handle);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_EndEnumStaticFields(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong handle)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.EndEnumStaticFields(handle);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.StartEnumStaticFieldsByName2(char* name, uint nameFlags, uint fieldFlags, global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask tlsTask, ulong* handle)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, char*, uint, uint, void*, ulong*, int>)__vtable[26]);
            {
                void* __tlsTask_native = default;
                int __retVal = default;
                try
                {
                    // Marshal - Convert managed data to native data.
                    __tlsTask_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.ConvertToUnmanaged(tlsTask);
                    {
                        __retVal = __target(__this, name, nameFlags, fieldFlags, __tlsTask_native, handle);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.Free(__tlsTask_native);
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_StartEnumStaticFieldsByName2(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, char* name, uint nameFlags, uint fieldFlags, void* __tlsTask_native, ulong* handle)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask tlsTask = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                tlsTask = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.ConvertToManaged(__tlsTask_native);
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.StartEnumStaticFieldsByName2(name, nameFlags, fieldFlags, tlsTask, handle);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.EnumStaticFieldByName2(ulong* handle, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> value)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, void**, int>)__vtable[27]);
            {
                void** __value_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __value_native__marshaller = new();
                try
                {
                    // Marshal - Convert managed data to native data.
                    __value_native__marshaller.FromManaged(value);
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __value_native = __value_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, handle, __value_native);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    __value_native__marshaller.OnInvoked();
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    __value_native__marshaller.Free();
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_EnumStaticFieldByName2(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle, void** __value_native)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> value = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __value_native__marshaller = new();
            try
            {
                // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
                __value_native__marshaller.FromUnmanaged(__value_native);
                // Unmarshal - Convert native data to managed data.
                value = __value_native__marshaller.ToManaged();
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.EnumStaticFieldByName2(handle, value);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __value_native__marshaller.Free();
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.EndEnumStaticFieldsByName2(ulong handle)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, int>)__vtable[28]);
            {
                int __retVal;
                {
                    __retVal = __target(__this, handle);
                }
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                global::System.GC.KeepAlive(this);
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_EndEnumStaticFieldsByName2(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong handle)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            int __retVal = default;
            try
            {
                // Unmarshal - Convert native data to managed data.
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.EndEnumStaticFieldsByName2(handle);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.GetStaticFieldByToken(uint token, global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask tlsTask, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> @field, uint bufLen, uint* nameLen, char* nameBuf)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, void*, void**, uint, uint*, char*, int>)__vtable[29]);
            {
                void* __tlsTask_native = default;
                void** __field_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __field_native__marshaller = new();
                try
                {
                    // Marshal - Convert managed data to native data.
                    __field_native__marshaller.FromManaged(@field);
                    __tlsTask_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.ConvertToUnmanaged(tlsTask);
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __field_native = __field_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, token, __tlsTask_native, __field_native, bufLen, nameLen, nameBuf);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    __field_native__marshaller.OnInvoked();
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    __field_native__marshaller.Free();
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.Free(__tlsTask_native);
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_GetStaticFieldByToken(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint token, void* __tlsTask_native, void** __field_native, uint bufLen, uint* nameLen, char* nameBuf)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask tlsTask = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> @field = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __field_native__marshaller = new();
            try
            {
                // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
                __field_native__marshaller.FromUnmanaged(__field_native);
                // Unmarshal - Convert native data to managed data.
                @field = __field_native__marshaller.ToManaged();
                tlsTask = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.ConvertToManaged(__tlsTask_native);
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.GetStaticFieldByToken(token, tlsTask, @field, bufLen, nameLen, nameBuf);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __field_native__marshaller.Free();
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.GetBase(global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance> @base)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, void**, int>)__vtable[30]);
            {
                void** __base_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.ManagedToUnmanaged __base_native__marshaller = new();
                try
                {
                    // Marshal - Convert managed data to native data.
                    __base_native__marshaller.FromManaged(@base);
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __base_native = __base_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, __base_native);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    __base_native__marshaller.OnInvoked();
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    __base_native__marshaller.Free();
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_GetBase(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void** __base_native)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance> @base = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>.UnmanagedToManaged __base_native__marshaller = new();
            try
            {
                // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
                __base_native__marshaller.FromUnmanaged(__base_native);
                // Unmarshal - Convert native data to managed data.
                @base = __base_native__marshaller.ToManaged();
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.GetBase(@base);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __base_native__marshaller.Free();
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.EnumStaticField2(ulong* handle, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> value, uint bufLen, uint* nameLen, char* nameBuf, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule> tokenScope, uint* token)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, void**, uint, uint*, char*, void**, uint*, int>)__vtable[31]);
            {
                void** __value_native = default;
                void** __tokenScope_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.ManagedToUnmanaged __tokenScope_native__marshaller = new();
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __value_native__marshaller = new();
                try
                {
                    // Marshal - Convert managed data to native data.
                    __tokenScope_native__marshaller.FromManaged(tokenScope);
                    __value_native__marshaller.FromManaged(value);
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __tokenScope_native = __tokenScope_native__marshaller.ToUnmanaged();
                        __value_native = __value_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, handle, __value_native, bufLen, nameLen, nameBuf, __tokenScope_native, token);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    __tokenScope_native__marshaller.OnInvoked();
                    __value_native__marshaller.OnInvoked();
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    __tokenScope_native__marshaller.Free();
                    __value_native__marshaller.Free();
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_EnumStaticField2(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle, void** __value_native, uint bufLen, uint* nameLen, char* nameBuf, void** __tokenScope_native, uint* token)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> value = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule> tokenScope = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.UnmanagedToManaged __tokenScope_native__marshaller = new();
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __value_native__marshaller = new();
            try
            {
                // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
                __tokenScope_native__marshaller.FromUnmanaged(__tokenScope_native);
                __value_native__marshaller.FromUnmanaged(__value_native);
                // Unmarshal - Convert native data to managed data.
                tokenScope = __tokenScope_native__marshaller.ToManaged();
                value = __value_native__marshaller.ToManaged();
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.EnumStaticField2(handle, value, bufLen, nameLen, nameBuf, tokenScope, token);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __tokenScope_native__marshaller.Free();
                __value_native__marshaller.Free();
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.EnumStaticFieldByName3(ulong* handle, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> value, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule> tokenScope, uint* token)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, void**, void**, uint*, int>)__vtable[32]);
            {
                void** __value_native = default;
                void** __tokenScope_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.ManagedToUnmanaged __tokenScope_native__marshaller = new();
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __value_native__marshaller = new();
                try
                {
                    // Marshal - Convert managed data to native data.
                    __tokenScope_native__marshaller.FromManaged(tokenScope);
                    __value_native__marshaller.FromManaged(value);
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __tokenScope_native = __tokenScope_native__marshaller.ToUnmanaged();
                        __value_native = __value_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, handle, __value_native, __tokenScope_native, token);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    __tokenScope_native__marshaller.OnInvoked();
                    __value_native__marshaller.OnInvoked();
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    __tokenScope_native__marshaller.Free();
                    __value_native__marshaller.Free();
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_EnumStaticFieldByName3(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle, void** __value_native, void** __tokenScope_native, uint* token)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> value = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule> tokenScope = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.UnmanagedToManaged __tokenScope_native__marshaller = new();
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __value_native__marshaller = new();
            try
            {
                // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
                __tokenScope_native__marshaller.FromUnmanaged(__tokenScope_native);
                __value_native__marshaller.FromUnmanaged(__value_native);
                // Unmarshal - Convert native data to managed data.
                tokenScope = __tokenScope_native__marshaller.ToManaged();
                value = __value_native__marshaller.ToManaged();
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.EnumStaticFieldByName3(handle, value, tokenScope, token);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __tokenScope_native__marshaller.Free();
                __value_native__marshaller.Free();
            }
            return __retVal;
        }
    }
 
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "12.0.14.48102")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.GetStaticFieldByToken2(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule tokenScope, uint token, global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask tlsTask, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> @field, uint bufLen, uint* nameLen, char* nameBuf)
    {
        unsafe
        {
            var (__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance));
            var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, uint, void*, void**, uint, uint*, char*, int>)__vtable[33]);
            {
                void* __tokenScope_native = default;
                void* __tlsTask_native = default;
                void** __field_native = default;
                int __retVal = default;
                // Setup - Perform required setup.
                global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.ManagedToUnmanaged __field_native__marshaller = new();
                try
                {
                    // Marshal - Convert managed data to native data.
                    __field_native__marshaller.FromManaged(@field);
                    __tlsTask_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.ConvertToUnmanaged(tlsTask);
                    __tokenScope_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.ConvertToUnmanaged(tokenScope);
                    {
                        // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                        __field_native = __field_native__marshaller.ToUnmanaged();
                        __retVal = __target(__this, __tokenScope_native, token, __tlsTask_native, __field_native, bufLen, nameLen, nameBuf);
                    }
                    // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                    __field_native__marshaller.OnInvoked();
                    global::System.GC.KeepAlive(this);
                }
                finally
                {
                    // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                    __field_native__marshaller.Free();
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.Free(__tlsTask_native);
                    global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.Free(__tokenScope_native);
                }
                return __retVal;
            }
        }
    }
 
    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static unsafe int ABI_GetStaticFieldByToken2(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void* __tokenScope_native, uint token, void* __tlsTask_native, void** __field_native, uint bufLen, uint* nameLen, char* nameBuf)
    {
        unsafe
        {
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance @this = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule tokenScope = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask tlsTask = default;
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue> @field = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue>.UnmanagedToManaged __field_native__marshaller = new();
            try
            {
                // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
                __field_native__marshaller.FromUnmanaged(__field_native);
                // Unmarshal - Convert native data to managed data.
                @field = __field_native__marshaller.ToManaged();
                tlsTask = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask>.ConvertToManaged(__tlsTask_native);
                tokenScope = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule>.ConvertToManaged(__tokenScope_native);
                @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance>(__this_native);
                __retVal = @this.GetStaticFieldByToken2(tokenScope, token, tlsTask, @field, bufLen, nameLen, nameBuf);
            }
            catch (global::System.Exception __exception)
            {
                __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __field_native__marshaller.Free();
            }
            return __retVal;
        }
    }
}
 
namespace Microsoft.Diagnostics.DataContractReader.Legacy
{
    [global::System.Runtime.InteropServices.Marshalling.IUnknownDerivedAttribute<InterfaceInformation, InterfaceImplementation>]
    public unsafe partial interface IXCLRDataTypeInstance
    {
    }
}