File: _generated\60\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.cs
Web Access
Project: src\src\runtime\src\native\managed\cdac\Microsoft.Diagnostics.DataContractReader.Legacy\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 unsafe struct InterfaceImplementationVtable
{
    public delegate* unmanaged[MemberFunction]<void*, global::System.Guid*, void**, int> QueryInterface_0;
    public delegate* unmanaged[MemberFunction]<void*, uint> AddRef_1;
    public delegate* unmanaged[MemberFunction]<void*, uint> Release_2;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void**, int> GetTypeDefinition_3;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void*, ulong*, int> StartEnumInstances_4;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, void**, int> EnumInstance_5;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, int> EndEnumInstances_6;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, uint*, char*, int> GetName_7;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, void**, int> GetTokenAndScope_8;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, int> GetFlags_9;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void*, int> IsSameObject_10;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, int> GetLatestEnCVersion_11;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, int> StartEnumExtents_12;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataMethodDefinitionExtent*, int> EnumExtent_13;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ulong, int> EndEnumExtents_14;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, int> GetCodeNotification_15;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, int> SetCodeNotification_16;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, byte*, uint, byte*, int> Request_17;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, int> GetRepresentativeEntryAddress_18;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int*, int> HasClassOrMethodInstantiation_19;
}

file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([8, 0, 246, 170, 44, 251, 11, 66, 143, 177, 66, 210, 68, 165, 74, 151]);
    public static void** ManagedVirtualMethodTable => (void**)global::System.Runtime.CompilerServices.Unsafe.AsPointer(in InterfaceImplementation.Vtable);
}

[global::System.Runtime.InteropServices.DynamicInterfaceCastableImplementationAttribute]
file unsafe interface InterfaceImplementation : global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition
{
    [global::System.Runtime.CompilerServices.FixedAddressValueTypeAttribute]
    public static readonly InterfaceImplementationVtable Vtable;

    static InterfaceImplementation()
    {
        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.GetTypeDefinition_3 = &ABI_GetTypeDefinition;
        Vtable.StartEnumInstances_4 = &ABI_StartEnumInstances;
        Vtable.EnumInstance_5 = &ABI_EnumInstance;
        Vtable.EndEnumInstances_6 = &ABI_EndEnumInstances;
        Vtable.GetName_7 = &ABI_GetName;
        Vtable.GetTokenAndScope_8 = &ABI_GetTokenAndScope;
        Vtable.GetFlags_9 = &ABI_GetFlags;
        Vtable.IsSameObject_10 = &ABI_IsSameObject;
        Vtable.GetLatestEnCVersion_11 = &ABI_GetLatestEnCVersion;
        Vtable.StartEnumExtents_12 = &ABI_StartEnumExtents;
        Vtable.EnumExtent_13 = &ABI_EnumExtent;
        Vtable.EndEnumExtents_14 = &ABI_EndEnumExtents;
        Vtable.GetCodeNotification_15 = &ABI_GetCodeNotification;
        Vtable.SetCodeNotification_16 = &ABI_SetCodeNotification;
        Vtable.Request_17 = &ABI_Request;
        Vtable.GetRepresentativeEntryAddress_18 = &ABI_GetRepresentativeEntryAddress;
        Vtable.HasClassOrMethodInstantiation_19 = &ABI_HasClassOrMethodInstantiation;
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.GetTypeDefinition(global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeDefinition> typeDefinition)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, void**, int> )__vtable[3]);
        {
            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 int ABI_GetTypeDefinition(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void** __typeDefinition_native)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @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.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.GetTypeDefinition(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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.StartEnumInstances(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataAppDomain appDomain, ulong* handle)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, ulong*, int> )__vtable[4]);
        {
            void* __appDomain_native = default;
            int __retVal = default;
            try
            {
                // Marshal - Convert managed data to native data.
                __appDomain_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataAppDomain>.ConvertToUnmanaged(appDomain);
                {
                    __retVal = __target(__this, __appDomain_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.IXCLRDataAppDomain>.Free(__appDomain_native);
            }
    
            return __retVal;
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_StartEnumInstances(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void* __appDomain_native, ulong* handle)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @this = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataAppDomain appDomain = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            appDomain = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataAppDomain>.ConvertToManaged(__appDomain_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.StartEnumInstances(appDomain, 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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.EnumInstance(ulong* handle, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance> instance)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, void**, int> )__vtable[5]);
        {
            void** __instance_native = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance>.ManagedToUnmanaged __instance_native__marshaller = new();
            try
            {
                // Marshal - Convert managed data to native data.
                __instance_native__marshaller.FromManaged(instance);
                {
                    // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                    __instance_native = __instance_native__marshaller.ToUnmanaged();
                    __retVal = __target(__this, handle, __instance_native);
                }
    
                // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
                __instance_native__marshaller.OnInvoked();
                global::System.GC.KeepAlive(this);
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __instance_native__marshaller.Free();
            }
    
            return __retVal;
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_EnumInstance(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle, void** __instance_native)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @this = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance> instance = default;
        int __retVal = default;
        // Setup - Perform required setup.
        global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRefMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance>.UnmanagedToManaged __instance_native__marshaller = new();
        try
        {
            // UnmarshalCapture - Capture the native data into marshaller instances in case conversion to managed data throws an exception.
            __instance_native__marshaller.FromUnmanaged(__instance_native);
            // Unmarshal - Convert native data to managed data.
            instance = __instance_native__marshaller.ToManaged();
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.EnumInstance(handle, instance);
        }
        catch (global::System.Exception __exception)
        {
            __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
        }
        finally
        {
            // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
            __instance_native__marshaller.Free();
        }
    
        return __retVal;
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.EndEnumInstances(ulong handle)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, int> )__vtable[6]);
        {
            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 int ABI_EndEnumInstances(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong handle)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @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.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.EndEnumInstances(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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.GetName(uint flags, uint bufLen, uint* nameLen, char* name)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, uint*, char*, int> )__vtable[7]);
        {
            int __retVal;
            {
                __retVal = __target(__this, flags, bufLen, nameLen, name);
            }
    
            // 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 int ABI_GetName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint flags, uint bufLen, uint* nameLen, char* name)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @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.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.GetName(flags, bufLen, nameLen, name);
        }
        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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.GetTokenAndScope(uint* token, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacComNullableByRef<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule> mod)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, void**, int> )__vtable[8]);
        {
            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, token, __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 int ABI_GetTokenAndScope(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* token, void** __mod_native)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @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.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.GetTokenAndScope(token, 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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.GetFlags(uint* flags)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int> )__vtable[9]);
        {
            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 int ABI_GetFlags(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* flags)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @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.IXCLRDataMethodDefinition>(__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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.IsSameObject(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition method)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, int> )__vtable[10]);
        {
            void* __method_native = default;
            int __retVal = default;
            try
            {
                // Marshal - Convert managed data to native data.
                __method_native = (void*)global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition>.ConvertToUnmanaged(method);
                {
                    __retVal = __target(__this, __method_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.IXCLRDataMethodDefinition>.Free(__method_native);
            }
    
            return __retVal;
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static int ABI_IsSameObject(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void* __method_native)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @this = default;
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition method = default;
        int __retVal = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            method = global::System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition>.ConvertToManaged(__method_native);
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.IsSameObject(method);
        }
        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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.GetLatestEnCVersion(uint* version)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int> )__vtable[11]);
        {
            int __retVal;
            {
                __retVal = __target(__this, version);
            }
    
            // 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 int ABI_GetLatestEnCVersion(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* version)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @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.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.GetLatestEnCVersion(version);
        }
        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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.StartEnumExtents(ulong* handle)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, int> )__vtable[12]);
        {
            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 int ABI_StartEnumExtents(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @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.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.StartEnumExtents(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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.EnumExtent(ulong* handle, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataMethodDefinitionExtent* extent)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataMethodDefinitionExtent*, int> )__vtable[13]);
        {
            int __retVal;
            {
                __retVal = __target(__this, handle, extent);
            }
    
            // 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 int ABI_EnumExtent(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong* handle, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataMethodDefinitionExtent* extent)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @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.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.EnumExtent(handle, extent);
        }
        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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.EndEnumExtents(ulong handle)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, ulong, int> )__vtable[14]);
        {
            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 int ABI_EndEnumExtents(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ulong handle)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @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.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.EndEnumExtents(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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.GetCodeNotification(uint* flags)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int> )__vtable[15]);
        {
            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 int ABI_GetCodeNotification(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* flags)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @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.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.GetCodeNotification(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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.SetCodeNotification(uint flags)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, int> )__vtable[16]);
        {
            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 int ABI_SetCodeNotification(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint flags)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @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.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.SetCodeNotification(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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.Request(uint reqCode, uint inBufferSize, byte* inBuffer, uint outBufferSize, byte* outBuffer)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, byte*, uint, byte*, int> )__vtable[17]);
        {
            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 int ABI_Request(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint reqCode, uint inBufferSize, byte* inBuffer, uint outBufferSize, byte* outBuffer)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @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.IXCLRDataMethodDefinition>(__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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.GetRepresentativeEntryAddress(global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* addr)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress*, int> )__vtable[18]);
        {
            int __retVal;
            {
                __retVal = __target(__this, addr);
            }
    
            // 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 int ABI_GetRepresentativeEntryAddress(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress* addr)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @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.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.GetRepresentativeEntryAddress(addr);
        }
        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", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.HasClassOrMethodInstantiation(int* bGeneric)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, int*, int> )__vtable[19]);
        {
            int __retVal;
            {
                __retVal = __target(__this, bGeneric);
            }
    
            // 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 int ABI_HasClassOrMethodInstantiation(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int* bGeneric)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition @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.IXCLRDataMethodDefinition>(__this_native);
            __retVal = @this.HasClassOrMethodInstantiation(bGeneric);
        }
        catch (global::System.Exception __exception)
        {
            __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception);
        }
    
        return __retVal;
    }
}

namespace Microsoft.Diagnostics.DataContractReader.Legacy
{
    [global::System.Runtime.InteropServices.Marshalling.IUnknownDerivedAttribute<InterfaceInformation, InterfaceImplementation>]
    public unsafe partial interface IXCLRDataMethodDefinition
    {
    }
}