File: _generated\22\Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport.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*, nint, void> CloseEnum_3;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint, uint*, int> CountEnum_4;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint, uint, int> ResetEnum_5;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint*, uint, uint*, int> EnumTypeDefs_6;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, uint*, uint, uint*, int> EnumInterfaceImpls_7;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint*, uint, uint*, int> EnumTypeRefs_8;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, char*, uint, uint*, int> FindTypeDefByName_9;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, char*, uint, uint*, global::System.Guid*, int> GetScopeProps_10;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint*, int> GetModuleFromScope_11;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, char*, uint, uint*, uint*, uint*, int> GetTypeDefProps_12;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, uint*, int> GetInterfaceImplProps_13;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, char*, uint, uint*, int> GetTypeRefProps_14;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, global::System.Guid*, void**, uint*, int> ResolveTypeRef_15;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, uint*, uint, uint*, int> EnumMembers_16;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, char*, uint*, uint, uint*, int> EnumMembersWithName_17;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, uint*, uint, uint*, int> EnumMethods_18;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, char*, uint*, uint, uint*, int> EnumMethodsWithName_19;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, uint*, uint, uint*, int> EnumFields_20;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, char*, uint*, uint, uint*, int> EnumFieldsWithName_21;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, uint*, uint, uint*, int> EnumParams_22;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, uint*, uint, uint*, int> EnumMemberRefs_23;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, uint*, uint*, uint, uint*, int> EnumMethodImpls_24;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, uint, uint*, uint, uint*, int> EnumPermissionSets_25;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, char*, byte*, uint, uint*, int> FindMember_26;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, char*, byte*, uint, uint*, int> FindMethod_27;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, char*, byte*, uint, uint*, int> FindField_28;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, char*, byte*, uint, uint*, int> FindMemberRef_29;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, char*, uint, uint*, uint*, byte**, uint*, uint*, uint*, int> GetMethodProps_30;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, char*, uint, uint*, byte**, uint*, int> GetMemberRefProps_31;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, uint*, uint, uint*, int> EnumProperties_32;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, uint*, uint, uint*, int> EnumEvents_33;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, char*, uint, uint*, uint*, uint*, uint*, uint*, uint*, uint*, uint, uint*, int> GetEventProps_34;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, uint*, uint, uint*, int> EnumMethodSemantics_35;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, uint*, int> GetMethodSemantics_36;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, void*, uint, uint*, uint*, int> GetClassLayout_37;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, byte**, uint*, int> GetFieldMarshal_38;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, uint*, int> GetRVA_39;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, void**, uint*, int> GetPermissionSetProps_40;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, byte**, uint*, int> GetSigFromToken_41;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, char*, uint, uint*, int> GetModuleRefProps_42;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint*, uint, uint*, int> EnumModuleRefs_43;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, byte**, uint*, int> GetTypeSpecFromToken_44;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, byte**, int> GetNameFromToken_45;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint*, uint, uint*, int> EnumUnresolvedMethods_46;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, char*, uint, uint*, int> GetUserString_47;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, char*, uint, uint*, uint*, int> GetPinvokeMap_48;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint*, uint, uint*, int> EnumSignatures_49;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint*, uint, uint*, int> EnumTypeSpecs_50;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint*, uint, uint*, int> EnumUserStrings_51;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint, uint*, int> GetParamForMethodIndex_52;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nint*, uint, uint, uint*, uint, uint*, int> EnumCustomAttributes_53;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, uint*, void**, uint*, int> GetCustomAttributeProps_54;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, char*, uint*, int> FindTypeRef_55;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, char*, uint, uint*, uint*, byte**, uint*, uint*, uint*, uint*, void**, uint*, int> GetMemberProps_56;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, char*, uint, uint*, uint*, byte**, uint*, uint*, void**, uint*, int> GetFieldProps_57;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, char*, uint, uint*, uint*, byte**, uint*, uint*, void**, uint*, uint*, uint*, uint*, uint, uint*, int> GetPropertyProps_58;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, uint*, char*, uint, uint*, uint*, uint*, void**, uint*, int> GetParamProps_59;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, char*, void**, uint*, int> GetCustomAttributeByName_60;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, int> IsValidToken_61;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, uint*, int> GetNestedClassProps_62;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, void*, uint, uint*, int> GetNativeCallConvFromSig_63;
    public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, int*, int> IsGlobal_64;
}

file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType
{
    public static global::System.Guid Iid { get; } = new([7, 130, 172, 125, 174, 211, 117, 76, 155, 103, 146, 128, 26, 73, 125, 68]);
    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.IMetaDataImport
{
    [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.CloseEnum_3 = &ABI_CloseEnum;
        Vtable.CountEnum_4 = &ABI_CountEnum;
        Vtable.ResetEnum_5 = &ABI_ResetEnum;
        Vtable.EnumTypeDefs_6 = &ABI_EnumTypeDefs;
        Vtable.EnumInterfaceImpls_7 = &ABI_EnumInterfaceImpls;
        Vtable.EnumTypeRefs_8 = &ABI_EnumTypeRefs;
        Vtable.FindTypeDefByName_9 = &ABI_FindTypeDefByName;
        Vtable.GetScopeProps_10 = &ABI_GetScopeProps;
        Vtable.GetModuleFromScope_11 = &ABI_GetModuleFromScope;
        Vtable.GetTypeDefProps_12 = &ABI_GetTypeDefProps;
        Vtable.GetInterfaceImplProps_13 = &ABI_GetInterfaceImplProps;
        Vtable.GetTypeRefProps_14 = &ABI_GetTypeRefProps;
        Vtable.ResolveTypeRef_15 = &ABI_ResolveTypeRef;
        Vtable.EnumMembers_16 = &ABI_EnumMembers;
        Vtable.EnumMembersWithName_17 = &ABI_EnumMembersWithName;
        Vtable.EnumMethods_18 = &ABI_EnumMethods;
        Vtable.EnumMethodsWithName_19 = &ABI_EnumMethodsWithName;
        Vtable.EnumFields_20 = &ABI_EnumFields;
        Vtable.EnumFieldsWithName_21 = &ABI_EnumFieldsWithName;
        Vtable.EnumParams_22 = &ABI_EnumParams;
        Vtable.EnumMemberRefs_23 = &ABI_EnumMemberRefs;
        Vtable.EnumMethodImpls_24 = &ABI_EnumMethodImpls;
        Vtable.EnumPermissionSets_25 = &ABI_EnumPermissionSets;
        Vtable.FindMember_26 = &ABI_FindMember;
        Vtable.FindMethod_27 = &ABI_FindMethod;
        Vtable.FindField_28 = &ABI_FindField;
        Vtable.FindMemberRef_29 = &ABI_FindMemberRef;
        Vtable.GetMethodProps_30 = &ABI_GetMethodProps;
        Vtable.GetMemberRefProps_31 = &ABI_GetMemberRefProps;
        Vtable.EnumProperties_32 = &ABI_EnumProperties;
        Vtable.EnumEvents_33 = &ABI_EnumEvents;
        Vtable.GetEventProps_34 = &ABI_GetEventProps;
        Vtable.EnumMethodSemantics_35 = &ABI_EnumMethodSemantics;
        Vtable.GetMethodSemantics_36 = &ABI_GetMethodSemantics;
        Vtable.GetClassLayout_37 = &ABI_GetClassLayout;
        Vtable.GetFieldMarshal_38 = &ABI_GetFieldMarshal;
        Vtable.GetRVA_39 = &ABI_GetRVA;
        Vtable.GetPermissionSetProps_40 = &ABI_GetPermissionSetProps;
        Vtable.GetSigFromToken_41 = &ABI_GetSigFromToken;
        Vtable.GetModuleRefProps_42 = &ABI_GetModuleRefProps;
        Vtable.EnumModuleRefs_43 = &ABI_EnumModuleRefs;
        Vtable.GetTypeSpecFromToken_44 = &ABI_GetTypeSpecFromToken;
        Vtable.GetNameFromToken_45 = &ABI_GetNameFromToken;
        Vtable.EnumUnresolvedMethods_46 = &ABI_EnumUnresolvedMethods;
        Vtable.GetUserString_47 = &ABI_GetUserString;
        Vtable.GetPinvokeMap_48 = &ABI_GetPinvokeMap;
        Vtable.EnumSignatures_49 = &ABI_EnumSignatures;
        Vtable.EnumTypeSpecs_50 = &ABI_EnumTypeSpecs;
        Vtable.EnumUserStrings_51 = &ABI_EnumUserStrings;
        Vtable.GetParamForMethodIndex_52 = &ABI_GetParamForMethodIndex;
        Vtable.EnumCustomAttributes_53 = &ABI_EnumCustomAttributes;
        Vtable.GetCustomAttributeProps_54 = &ABI_GetCustomAttributeProps;
        Vtable.FindTypeRef_55 = &ABI_FindTypeRef;
        Vtable.GetMemberProps_56 = &ABI_GetMemberProps;
        Vtable.GetFieldProps_57 = &ABI_GetFieldProps;
        Vtable.GetPropertyProps_58 = &ABI_GetPropertyProps;
        Vtable.GetParamProps_59 = &ABI_GetParamProps;
        Vtable.GetCustomAttributeByName_60 = &ABI_GetCustomAttributeByName;
        Vtable.IsValidToken_61 = &ABI_IsValidToken;
        Vtable.GetNestedClassProps_62 = &ABI_GetNestedClassProps;
        Vtable.GetNativeCallConvFromSig_63 = &ABI_GetNativeCallConvFromSig;
        Vtable.IsGlobal_64 = &ABI_IsGlobal;
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    void global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport.CloseEnum(nint hEnum)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint, void> )__vtable[3]);
        {
            {
                __target(__this, hEnum);
            }
    
            // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call.
            global::System.GC.KeepAlive(this);
        }
    }

    [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })]
    internal static void ABI_CloseEnum(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint hEnum)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @this = default;
        try
        {
            // Unmarshal - Convert native data to managed data.
            @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport>(__this_native);
            @this.CloseEnum(hEnum);
        }
        catch (global::System.Exception __exception)
        {
            global::System.Runtime.InteropServices.Marshalling.ExceptionAsVoidMarshaller.ConvertToUnmanaged(__exception);
        }
    }

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.22804")]
    [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
    int global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport.CountEnum(nint hEnum, uint* pulCount)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint, uint*, int> )__vtable[4]);
        {
            int __retVal;
            {
                __retVal = __target(__this, hEnum, pulCount);
            }
    
            // 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_CountEnum(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint hEnum, uint* pulCount)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.CountEnum(hEnum, pulCount);
        }
        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.IMetaDataImport.ResetEnum(nint hEnum, uint ulPos)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint, uint, int> )__vtable[5]);
        {
            int __retVal;
            {
                __retVal = __target(__this, hEnum, ulPos);
            }
    
            // 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_ResetEnum(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint hEnum, uint ulPos)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.ResetEnum(hEnum, ulPos);
        }
        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.IMetaDataImport.EnumTypeDefs(nint* phEnum, uint* rTypeDefs, uint cMax, uint* pcTypeDefs)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint*, uint, uint*, int> )__vtable[6]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, rTypeDefs, cMax, pcTypeDefs);
            }
    
            // 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_EnumTypeDefs(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint* rTypeDefs, uint cMax, uint* pcTypeDefs)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumTypeDefs(phEnum, rTypeDefs, cMax, pcTypeDefs);
        }
        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.IMetaDataImport.EnumInterfaceImpls(nint* phEnum, uint td, uint* rImpls, uint cMax, uint* pcImpls)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, uint*, uint, uint*, int> )__vtable[7]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, td, rImpls, cMax, pcImpls);
            }
    
            // 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_EnumInterfaceImpls(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint td, uint* rImpls, uint cMax, uint* pcImpls)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumInterfaceImpls(phEnum, td, rImpls, cMax, pcImpls);
        }
        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.IMetaDataImport.EnumTypeRefs(nint* phEnum, uint* rTypeRefs, uint cMax, uint* pcTypeRefs)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint*, uint, uint*, int> )__vtable[8]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, rTypeRefs, cMax, pcTypeRefs);
            }
    
            // 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_EnumTypeRefs(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint* rTypeRefs, uint cMax, uint* pcTypeRefs)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumTypeRefs(phEnum, rTypeRefs, cMax, pcTypeRefs);
        }
        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.IMetaDataImport.FindTypeDefByName(char* szTypeDef, uint tkEnclosingClass, uint* ptd)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, char*, uint, uint*, int> )__vtable[9]);
        {
            int __retVal;
            {
                __retVal = __target(__this, szTypeDef, tkEnclosingClass, ptd);
            }
    
            // 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_FindTypeDefByName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, char* szTypeDef, uint tkEnclosingClass, uint* ptd)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.FindTypeDefByName(szTypeDef, tkEnclosingClass, ptd);
        }
        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.IMetaDataImport.GetScopeProps(char* szName, uint cchName, uint* pchName, global::System.Guid* pmvid)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, char*, uint, uint*, global::System.Guid*, int> )__vtable[10]);
        {
            int __retVal;
            {
                __retVal = __target(__this, szName, cchName, pchName, pmvid);
            }
    
            // 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_GetScopeProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, char* szName, uint cchName, uint* pchName, global::System.Guid* pmvid)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetScopeProps(szName, cchName, pchName, pmvid);
        }
        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.IMetaDataImport.GetModuleFromScope(uint* pmd)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint*, int> )__vtable[11]);
        {
            int __retVal;
            {
                __retVal = __target(__this, pmd);
            }
    
            // 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_GetModuleFromScope(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint* pmd)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetModuleFromScope(pmd);
        }
        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.IMetaDataImport.GetTypeDefProps(uint td, char* szTypeDef, uint cchTypeDef, uint* pchTypeDef, uint* pdwTypeDefFlags, uint* ptkExtends)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, char*, uint, uint*, uint*, uint*, int> )__vtable[12]);
        {
            int __retVal;
            {
                __retVal = __target(__this, td, szTypeDef, cchTypeDef, pchTypeDef, pdwTypeDefFlags, ptkExtends);
            }
    
            // 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_GetTypeDefProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint td, char* szTypeDef, uint cchTypeDef, uint* pchTypeDef, uint* pdwTypeDefFlags, uint* ptkExtends)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetTypeDefProps(td, szTypeDef, cchTypeDef, pchTypeDef, pdwTypeDefFlags, ptkExtends);
        }
        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.IMetaDataImport.GetInterfaceImplProps(uint iiImpl, uint* pClass, uint* ptkIface)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, uint*, int> )__vtable[13]);
        {
            int __retVal;
            {
                __retVal = __target(__this, iiImpl, pClass, ptkIface);
            }
    
            // 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_GetInterfaceImplProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint iiImpl, uint* pClass, uint* ptkIface)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetInterfaceImplProps(iiImpl, pClass, ptkIface);
        }
        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.IMetaDataImport.GetTypeRefProps(uint tr, uint* ptkResolutionScope, char* szName, uint cchName, uint* pchName)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, char*, uint, uint*, int> )__vtable[14]);
        {
            int __retVal;
            {
                __retVal = __target(__this, tr, ptkResolutionScope, szName, cchName, pchName);
            }
    
            // 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_GetTypeRefProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint tr, uint* ptkResolutionScope, char* szName, uint cchName, uint* pchName)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetTypeRefProps(tr, ptkResolutionScope, szName, cchName, pchName);
        }
        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.IMetaDataImport.ResolveTypeRef(uint tr, global::System.Guid* riid, void** ppIScope, uint* ptd)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, global::System.Guid*, void**, uint*, int> )__vtable[15]);
        {
            int __retVal;
            {
                __retVal = __target(__this, tr, riid, ppIScope, ptd);
            }
    
            // 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_ResolveTypeRef(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint tr, global::System.Guid* riid, void** ppIScope, uint* ptd)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.ResolveTypeRef(tr, riid, ppIScope, ptd);
        }
        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.IMetaDataImport.EnumMembers(nint* phEnum, uint cl, uint* rMembers, uint cMax, uint* pcTokens)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, uint*, uint, uint*, int> )__vtable[16]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, cl, rMembers, cMax, pcTokens);
            }
    
            // 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_EnumMembers(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint cl, uint* rMembers, uint cMax, uint* pcTokens)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumMembers(phEnum, cl, rMembers, cMax, pcTokens);
        }
        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.IMetaDataImport.EnumMembersWithName(nint* phEnum, uint cl, char* szName, uint* rMembers, uint cMax, uint* pcTokens)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, char*, uint*, uint, uint*, int> )__vtable[17]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, cl, szName, rMembers, cMax, pcTokens);
            }
    
            // 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_EnumMembersWithName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint cl, char* szName, uint* rMembers, uint cMax, uint* pcTokens)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumMembersWithName(phEnum, cl, szName, rMembers, cMax, pcTokens);
        }
        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.IMetaDataImport.EnumMethods(nint* phEnum, uint cl, uint* rMethods, uint cMax, uint* pcTokens)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, uint*, uint, uint*, int> )__vtable[18]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, cl, rMethods, cMax, pcTokens);
            }
    
            // 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_EnumMethods(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint cl, uint* rMethods, uint cMax, uint* pcTokens)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumMethods(phEnum, cl, rMethods, cMax, pcTokens);
        }
        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.IMetaDataImport.EnumMethodsWithName(nint* phEnum, uint cl, char* szName, uint* rMethods, uint cMax, uint* pcTokens)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, char*, uint*, uint, uint*, int> )__vtable[19]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, cl, szName, rMethods, cMax, pcTokens);
            }
    
            // 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_EnumMethodsWithName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint cl, char* szName, uint* rMethods, uint cMax, uint* pcTokens)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumMethodsWithName(phEnum, cl, szName, rMethods, cMax, pcTokens);
        }
        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.IMetaDataImport.EnumFields(nint* phEnum, uint cl, uint* rFields, uint cMax, uint* pcTokens)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, uint*, uint, uint*, int> )__vtable[20]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, cl, rFields, cMax, pcTokens);
            }
    
            // 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_EnumFields(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint cl, uint* rFields, uint cMax, uint* pcTokens)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumFields(phEnum, cl, rFields, cMax, pcTokens);
        }
        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.IMetaDataImport.EnumFieldsWithName(nint* phEnum, uint cl, char* szName, uint* rFields, uint cMax, uint* pcTokens)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, char*, uint*, uint, uint*, int> )__vtable[21]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, cl, szName, rFields, cMax, pcTokens);
            }
    
            // 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_EnumFieldsWithName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint cl, char* szName, uint* rFields, uint cMax, uint* pcTokens)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumFieldsWithName(phEnum, cl, szName, rFields, cMax, pcTokens);
        }
        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.IMetaDataImport.EnumParams(nint* phEnum, uint mb, uint* rParams, uint cMax, uint* pcTokens)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, uint*, uint, uint*, int> )__vtable[22]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, mb, rParams, cMax, pcTokens);
            }
    
            // 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_EnumParams(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint mb, uint* rParams, uint cMax, uint* pcTokens)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumParams(phEnum, mb, rParams, cMax, pcTokens);
        }
        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.IMetaDataImport.EnumMemberRefs(nint* phEnum, uint tkParent, uint* rMemberRefs, uint cMax, uint* pcTokens)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, uint*, uint, uint*, int> )__vtable[23]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, tkParent, rMemberRefs, cMax, pcTokens);
            }
    
            // 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_EnumMemberRefs(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint tkParent, uint* rMemberRefs, uint cMax, uint* pcTokens)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumMemberRefs(phEnum, tkParent, rMemberRefs, cMax, pcTokens);
        }
        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.IMetaDataImport.EnumMethodImpls(nint* phEnum, uint td, uint* rMethodBody, uint* rMethodDecl, uint cMax, uint* pcTokens)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, uint*, uint*, uint, uint*, int> )__vtable[24]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, td, rMethodBody, rMethodDecl, cMax, pcTokens);
            }
    
            // 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_EnumMethodImpls(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint td, uint* rMethodBody, uint* rMethodDecl, uint cMax, uint* pcTokens)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumMethodImpls(phEnum, td, rMethodBody, rMethodDecl, cMax, pcTokens);
        }
        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.IMetaDataImport.EnumPermissionSets(nint* phEnum, uint tk, uint dwActions, uint* rPermission, uint cMax, uint* pcTokens)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, uint, uint*, uint, uint*, int> )__vtable[25]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, tk, dwActions, rPermission, cMax, pcTokens);
            }
    
            // 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_EnumPermissionSets(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint tk, uint dwActions, uint* rPermission, uint cMax, uint* pcTokens)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumPermissionSets(phEnum, tk, dwActions, rPermission, cMax, pcTokens);
        }
        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.IMetaDataImport.FindMember(uint td, char* szName, byte* pvSigBlob, uint cbSigBlob, uint* pmb)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, char*, byte*, uint, uint*, int> )__vtable[26]);
        {
            int __retVal;
            {
                __retVal = __target(__this, td, szName, pvSigBlob, cbSigBlob, pmb);
            }
    
            // 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_FindMember(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint td, char* szName, byte* pvSigBlob, uint cbSigBlob, uint* pmb)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.FindMember(td, szName, pvSigBlob, cbSigBlob, pmb);
        }
        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.IMetaDataImport.FindMethod(uint td, char* szName, byte* pvSigBlob, uint cbSigBlob, uint* pmb)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, char*, byte*, uint, uint*, int> )__vtable[27]);
        {
            int __retVal;
            {
                __retVal = __target(__this, td, szName, pvSigBlob, cbSigBlob, pmb);
            }
    
            // 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_FindMethod(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint td, char* szName, byte* pvSigBlob, uint cbSigBlob, uint* pmb)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.FindMethod(td, szName, pvSigBlob, cbSigBlob, pmb);
        }
        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.IMetaDataImport.FindField(uint td, char* szName, byte* pvSigBlob, uint cbSigBlob, uint* pmb)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, char*, byte*, uint, uint*, int> )__vtable[28]);
        {
            int __retVal;
            {
                __retVal = __target(__this, td, szName, pvSigBlob, cbSigBlob, pmb);
            }
    
            // 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_FindField(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint td, char* szName, byte* pvSigBlob, uint cbSigBlob, uint* pmb)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.FindField(td, szName, pvSigBlob, cbSigBlob, pmb);
        }
        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.IMetaDataImport.FindMemberRef(uint td, char* szName, byte* pvSigBlob, uint cbSigBlob, uint* pmr)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, char*, byte*, uint, uint*, int> )__vtable[29]);
        {
            int __retVal;
            {
                __retVal = __target(__this, td, szName, pvSigBlob, cbSigBlob, pmr);
            }
    
            // 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_FindMemberRef(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint td, char* szName, byte* pvSigBlob, uint cbSigBlob, uint* pmr)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.FindMemberRef(td, szName, pvSigBlob, cbSigBlob, pmr);
        }
        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.IMetaDataImport.GetMethodProps(uint mb, uint* pClass, char* szMethod, uint cchMethod, uint* pchMethod, uint* pdwAttr, byte** ppvSigBlob, uint* pcbSigBlob, uint* pulCodeRVA, uint* pdwImplFlags)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, char*, uint, uint*, uint*, byte**, uint*, uint*, uint*, int> )__vtable[30]);
        {
            int __retVal;
            {
                __retVal = __target(__this, mb, pClass, szMethod, cchMethod, pchMethod, pdwAttr, ppvSigBlob, pcbSigBlob, pulCodeRVA, pdwImplFlags);
            }
    
            // 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_GetMethodProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint mb, uint* pClass, char* szMethod, uint cchMethod, uint* pchMethod, uint* pdwAttr, byte** ppvSigBlob, uint* pcbSigBlob, uint* pulCodeRVA, uint* pdwImplFlags)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetMethodProps(mb, pClass, szMethod, cchMethod, pchMethod, pdwAttr, ppvSigBlob, pcbSigBlob, pulCodeRVA, pdwImplFlags);
        }
        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.IMetaDataImport.GetMemberRefProps(uint mr, uint* ptk, char* szMember, uint cchMember, uint* pchMember, byte** ppvSigBlob, uint* pbSig)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, char*, uint, uint*, byte**, uint*, int> )__vtable[31]);
        {
            int __retVal;
            {
                __retVal = __target(__this, mr, ptk, szMember, cchMember, pchMember, ppvSigBlob, pbSig);
            }
    
            // 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_GetMemberRefProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint mr, uint* ptk, char* szMember, uint cchMember, uint* pchMember, byte** ppvSigBlob, uint* pbSig)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetMemberRefProps(mr, ptk, szMember, cchMember, pchMember, ppvSigBlob, pbSig);
        }
        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.IMetaDataImport.EnumProperties(nint* phEnum, uint td, uint* rProperties, uint cMax, uint* pcProperties)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, uint*, uint, uint*, int> )__vtable[32]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, td, rProperties, cMax, pcProperties);
            }
    
            // 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_EnumProperties(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint td, uint* rProperties, uint cMax, uint* pcProperties)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumProperties(phEnum, td, rProperties, cMax, pcProperties);
        }
        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.IMetaDataImport.EnumEvents(nint* phEnum, uint td, uint* rEvents, uint cMax, uint* pcEvents)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, uint*, uint, uint*, int> )__vtable[33]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, td, rEvents, cMax, pcEvents);
            }
    
            // 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_EnumEvents(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint td, uint* rEvents, uint cMax, uint* pcEvents)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumEvents(phEnum, td, rEvents, cMax, pcEvents);
        }
        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.IMetaDataImport.GetEventProps(uint ev, uint* pClass, char* szEvent, uint cchEvent, uint* pchEvent, uint* pdwEventFlags, uint* ptkEventType, uint* pmdAddOn, uint* pmdRemoveOn, uint* pmdFire, uint* rmdOtherMethod, uint cMax, uint* pcOtherMethod)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, char*, uint, uint*, uint*, uint*, uint*, uint*, uint*, uint*, uint, uint*, int> )__vtable[34]);
        {
            int __retVal;
            {
                __retVal = __target(__this, ev, pClass, szEvent, cchEvent, pchEvent, pdwEventFlags, ptkEventType, pmdAddOn, pmdRemoveOn, pmdFire, rmdOtherMethod, cMax, pcOtherMethod);
            }
    
            // 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_GetEventProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint ev, uint* pClass, char* szEvent, uint cchEvent, uint* pchEvent, uint* pdwEventFlags, uint* ptkEventType, uint* pmdAddOn, uint* pmdRemoveOn, uint* pmdFire, uint* rmdOtherMethod, uint cMax, uint* pcOtherMethod)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetEventProps(ev, pClass, szEvent, cchEvent, pchEvent, pdwEventFlags, ptkEventType, pmdAddOn, pmdRemoveOn, pmdFire, rmdOtherMethod, cMax, pcOtherMethod);
        }
        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.IMetaDataImport.EnumMethodSemantics(nint* phEnum, uint mb, uint* rEventProp, uint cMax, uint* pcEventProp)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, uint*, uint, uint*, int> )__vtable[35]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, mb, rEventProp, cMax, pcEventProp);
            }
    
            // 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_EnumMethodSemantics(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint mb, uint* rEventProp, uint cMax, uint* pcEventProp)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumMethodSemantics(phEnum, mb, rEventProp, cMax, pcEventProp);
        }
        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.IMetaDataImport.GetMethodSemantics(uint mb, uint tkEventProp, uint* pdwSemanticsFlags)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, uint*, int> )__vtable[36]);
        {
            int __retVal;
            {
                __retVal = __target(__this, mb, tkEventProp, pdwSemanticsFlags);
            }
    
            // 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_GetMethodSemantics(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint mb, uint tkEventProp, uint* pdwSemanticsFlags)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetMethodSemantics(mb, tkEventProp, pdwSemanticsFlags);
        }
        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.IMetaDataImport.GetClassLayout(uint td, uint* pdwPackSize, void* rFieldOffset, uint cMax, uint* pcFieldOffset, uint* pulClassSize)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, void*, uint, uint*, uint*, int> )__vtable[37]);
        {
            int __retVal;
            {
                __retVal = __target(__this, td, pdwPackSize, rFieldOffset, cMax, pcFieldOffset, pulClassSize);
            }
    
            // 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_GetClassLayout(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint td, uint* pdwPackSize, void* rFieldOffset, uint cMax, uint* pcFieldOffset, uint* pulClassSize)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetClassLayout(td, pdwPackSize, rFieldOffset, cMax, pcFieldOffset, pulClassSize);
        }
        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.IMetaDataImport.GetFieldMarshal(uint tk, byte** ppvNativeType, uint* pcbNativeType)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, byte**, uint*, int> )__vtable[38]);
        {
            int __retVal;
            {
                __retVal = __target(__this, tk, ppvNativeType, pcbNativeType);
            }
    
            // 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_GetFieldMarshal(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint tk, byte** ppvNativeType, uint* pcbNativeType)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetFieldMarshal(tk, ppvNativeType, pcbNativeType);
        }
        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.IMetaDataImport.GetRVA(uint tk, uint* pulCodeRVA, uint* pdwImplFlags)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, uint*, int> )__vtable[39]);
        {
            int __retVal;
            {
                __retVal = __target(__this, tk, pulCodeRVA, pdwImplFlags);
            }
    
            // 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_GetRVA(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint tk, uint* pulCodeRVA, uint* pdwImplFlags)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetRVA(tk, pulCodeRVA, pdwImplFlags);
        }
        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.IMetaDataImport.GetPermissionSetProps(uint pm, uint* pdwAction, void** ppvPermission, uint* pcbPermission)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, void**, uint*, int> )__vtable[40]);
        {
            int __retVal;
            {
                __retVal = __target(__this, pm, pdwAction, ppvPermission, pcbPermission);
            }
    
            // 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_GetPermissionSetProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint pm, uint* pdwAction, void** ppvPermission, uint* pcbPermission)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetPermissionSetProps(pm, pdwAction, ppvPermission, pcbPermission);
        }
        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.IMetaDataImport.GetSigFromToken(uint mdSig, byte** ppvSig, uint* pcbSig)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, byte**, uint*, int> )__vtable[41]);
        {
            int __retVal;
            {
                __retVal = __target(__this, mdSig, ppvSig, pcbSig);
            }
    
            // 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_GetSigFromToken(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint mdSig, byte** ppvSig, uint* pcbSig)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetSigFromToken(mdSig, ppvSig, pcbSig);
        }
        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.IMetaDataImport.GetModuleRefProps(uint mur, char* szName, uint cchName, uint* pchName)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, char*, uint, uint*, int> )__vtable[42]);
        {
            int __retVal;
            {
                __retVal = __target(__this, mur, szName, cchName, pchName);
            }
    
            // 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_GetModuleRefProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint mur, char* szName, uint cchName, uint* pchName)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetModuleRefProps(mur, szName, cchName, pchName);
        }
        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.IMetaDataImport.EnumModuleRefs(nint* phEnum, uint* rModuleRefs, uint cmax, uint* pcModuleRefs)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint*, uint, uint*, int> )__vtable[43]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, rModuleRefs, cmax, pcModuleRefs);
            }
    
            // 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_EnumModuleRefs(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint* rModuleRefs, uint cmax, uint* pcModuleRefs)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumModuleRefs(phEnum, rModuleRefs, cmax, pcModuleRefs);
        }
        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.IMetaDataImport.GetTypeSpecFromToken(uint typespec, byte** ppvSig, uint* pcbSig)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, byte**, uint*, int> )__vtable[44]);
        {
            int __retVal;
            {
                __retVal = __target(__this, typespec, ppvSig, pcbSig);
            }
    
            // 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_GetTypeSpecFromToken(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint typespec, byte** ppvSig, uint* pcbSig)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetTypeSpecFromToken(typespec, ppvSig, pcbSig);
        }
        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.IMetaDataImport.GetNameFromToken(uint tk, byte** pszUtf8NamePtr)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, byte**, int> )__vtable[45]);
        {
            int __retVal;
            {
                __retVal = __target(__this, tk, pszUtf8NamePtr);
            }
    
            // 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_GetNameFromToken(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint tk, byte** pszUtf8NamePtr)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetNameFromToken(tk, pszUtf8NamePtr);
        }
        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.IMetaDataImport.EnumUnresolvedMethods(nint* phEnum, uint* rMethods, uint cMax, uint* pcTokens)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint*, uint, uint*, int> )__vtable[46]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, rMethods, cMax, pcTokens);
            }
    
            // 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_EnumUnresolvedMethods(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint* rMethods, uint cMax, uint* pcTokens)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumUnresolvedMethods(phEnum, rMethods, cMax, pcTokens);
        }
        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.IMetaDataImport.GetUserString(uint stk, char* szString, uint cchString, uint* pchString)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, char*, uint, uint*, int> )__vtable[47]);
        {
            int __retVal;
            {
                __retVal = __target(__this, stk, szString, cchString, pchString);
            }
    
            // 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_GetUserString(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint stk, char* szString, uint cchString, uint* pchString)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetUserString(stk, szString, cchString, pchString);
        }
        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.IMetaDataImport.GetPinvokeMap(uint tk, uint* pdwMappingFlags, char* szImportName, uint cchImportName, uint* pchImportName, uint* pmrImportDLL)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, char*, uint, uint*, uint*, int> )__vtable[48]);
        {
            int __retVal;
            {
                __retVal = __target(__this, tk, pdwMappingFlags, szImportName, cchImportName, pchImportName, pmrImportDLL);
            }
    
            // 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_GetPinvokeMap(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint tk, uint* pdwMappingFlags, char* szImportName, uint cchImportName, uint* pchImportName, uint* pmrImportDLL)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetPinvokeMap(tk, pdwMappingFlags, szImportName, cchImportName, pchImportName, pmrImportDLL);
        }
        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.IMetaDataImport.EnumSignatures(nint* phEnum, uint* rSignatures, uint cmax, uint* pcSignatures)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint*, uint, uint*, int> )__vtable[49]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, rSignatures, cmax, pcSignatures);
            }
    
            // 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_EnumSignatures(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint* rSignatures, uint cmax, uint* pcSignatures)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumSignatures(phEnum, rSignatures, cmax, pcSignatures);
        }
        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.IMetaDataImport.EnumTypeSpecs(nint* phEnum, uint* rTypeSpecs, uint cmax, uint* pcTypeSpecs)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint*, uint, uint*, int> )__vtable[50]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, rTypeSpecs, cmax, pcTypeSpecs);
            }
    
            // 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_EnumTypeSpecs(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint* rTypeSpecs, uint cmax, uint* pcTypeSpecs)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumTypeSpecs(phEnum, rTypeSpecs, cmax, pcTypeSpecs);
        }
        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.IMetaDataImport.EnumUserStrings(nint* phEnum, uint* rStrings, uint cmax, uint* pcStrings)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint*, uint, uint*, int> )__vtable[51]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, rStrings, cmax, pcStrings);
            }
    
            // 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_EnumUserStrings(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint* rStrings, uint cmax, uint* pcStrings)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumUserStrings(phEnum, rStrings, cmax, pcStrings);
        }
        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.IMetaDataImport.GetParamForMethodIndex(uint md, uint ulParamSeq, uint* ppd)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint, uint*, int> )__vtable[52]);
        {
            int __retVal;
            {
                __retVal = __target(__this, md, ulParamSeq, ppd);
            }
    
            // 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_GetParamForMethodIndex(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint md, uint ulParamSeq, uint* ppd)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetParamForMethodIndex(md, ulParamSeq, ppd);
        }
        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.IMetaDataImport.EnumCustomAttributes(nint* phEnum, uint tk, uint tkType, uint* rCustomAttributes, uint cMax, uint* pcCustomAttributes)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, nint*, uint, uint, uint*, uint, uint*, int> )__vtable[53]);
        {
            int __retVal;
            {
                __retVal = __target(__this, phEnum, tk, tkType, rCustomAttributes, cMax, pcCustomAttributes);
            }
    
            // 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_EnumCustomAttributes(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nint* phEnum, uint tk, uint tkType, uint* rCustomAttributes, uint cMax, uint* pcCustomAttributes)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.EnumCustomAttributes(phEnum, tk, tkType, rCustomAttributes, cMax, pcCustomAttributes);
        }
        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.IMetaDataImport.GetCustomAttributeProps(uint cv, uint* ptkObj, uint* ptkType, void** ppBlob, uint* pcbSize)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, uint*, void**, uint*, int> )__vtable[54]);
        {
            int __retVal;
            {
                __retVal = __target(__this, cv, ptkObj, ptkType, ppBlob, pcbSize);
            }
    
            // 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_GetCustomAttributeProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint cv, uint* ptkObj, uint* ptkType, void** ppBlob, uint* pcbSize)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetCustomAttributeProps(cv, ptkObj, ptkType, ppBlob, pcbSize);
        }
        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.IMetaDataImport.FindTypeRef(uint tkResolutionScope, char* szName, uint* ptr)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, char*, uint*, int> )__vtable[55]);
        {
            int __retVal;
            {
                __retVal = __target(__this, tkResolutionScope, szName, ptr);
            }
    
            // 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_FindTypeRef(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint tkResolutionScope, char* szName, uint* ptr)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.FindTypeRef(tkResolutionScope, szName, ptr);
        }
        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.IMetaDataImport.GetMemberProps(uint mb, uint* pClass, char* szMember, uint cchMember, uint* pchMember, uint* pdwAttr, byte** ppvSigBlob, uint* pcbSigBlob, uint* pulCodeRVA, uint* pdwImplFlags, uint* pdwCPlusTypeFlag, void** ppValue, uint* pcchValue)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, char*, uint, uint*, uint*, byte**, uint*, uint*, uint*, uint*, void**, uint*, int> )__vtable[56]);
        {
            int __retVal;
            {
                __retVal = __target(__this, mb, pClass, szMember, cchMember, pchMember, pdwAttr, ppvSigBlob, pcbSigBlob, pulCodeRVA, pdwImplFlags, pdwCPlusTypeFlag, ppValue, pcchValue);
            }
    
            // 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_GetMemberProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint mb, uint* pClass, char* szMember, uint cchMember, uint* pchMember, uint* pdwAttr, byte** ppvSigBlob, uint* pcbSigBlob, uint* pulCodeRVA, uint* pdwImplFlags, uint* pdwCPlusTypeFlag, void** ppValue, uint* pcchValue)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetMemberProps(mb, pClass, szMember, cchMember, pchMember, pdwAttr, ppvSigBlob, pcbSigBlob, pulCodeRVA, pdwImplFlags, pdwCPlusTypeFlag, ppValue, pcchValue);
        }
        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.IMetaDataImport.GetFieldProps(uint mb, uint* pClass, char* szField, uint cchField, uint* pchField, uint* pdwAttr, byte** ppvSigBlob, uint* pcbSigBlob, uint* pdwCPlusTypeFlag, void** ppValue, uint* pcchValue)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, char*, uint, uint*, uint*, byte**, uint*, uint*, void**, uint*, int> )__vtable[57]);
        {
            int __retVal;
            {
                __retVal = __target(__this, mb, pClass, szField, cchField, pchField, pdwAttr, ppvSigBlob, pcbSigBlob, pdwCPlusTypeFlag, ppValue, pcchValue);
            }
    
            // 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_GetFieldProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint mb, uint* pClass, char* szField, uint cchField, uint* pchField, uint* pdwAttr, byte** ppvSigBlob, uint* pcbSigBlob, uint* pdwCPlusTypeFlag, void** ppValue, uint* pcchValue)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetFieldProps(mb, pClass, szField, cchField, pchField, pdwAttr, ppvSigBlob, pcbSigBlob, pdwCPlusTypeFlag, ppValue, pcchValue);
        }
        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.IMetaDataImport.GetPropertyProps(uint prop, uint* pClass, char* szProperty, uint cchProperty, uint* pchProperty, uint* pdwPropFlags, byte** ppvSig, uint* pbSig, uint* pdwCPlusTypeFlag, void** ppDefaultValue, uint* pcchDefaultValue, uint* pmdSetter, uint* pmdGetter, uint* rmdOtherMethod, uint cMax, uint* pcOtherMethod)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, char*, uint, uint*, uint*, byte**, uint*, uint*, void**, uint*, uint*, uint*, uint*, uint, uint*, int> )__vtable[58]);
        {
            int __retVal;
            {
                __retVal = __target(__this, prop, pClass, szProperty, cchProperty, pchProperty, pdwPropFlags, ppvSig, pbSig, pdwCPlusTypeFlag, ppDefaultValue, pcchDefaultValue, pmdSetter, pmdGetter, rmdOtherMethod, cMax, pcOtherMethod);
            }
    
            // 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_GetPropertyProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint prop, uint* pClass, char* szProperty, uint cchProperty, uint* pchProperty, uint* pdwPropFlags, byte** ppvSig, uint* pbSig, uint* pdwCPlusTypeFlag, void** ppDefaultValue, uint* pcchDefaultValue, uint* pmdSetter, uint* pmdGetter, uint* rmdOtherMethod, uint cMax, uint* pcOtherMethod)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetPropertyProps(prop, pClass, szProperty, cchProperty, pchProperty, pdwPropFlags, ppvSig, pbSig, pdwCPlusTypeFlag, ppDefaultValue, pcchDefaultValue, pmdSetter, pmdGetter, rmdOtherMethod, cMax, pcOtherMethod);
        }
        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.IMetaDataImport.GetParamProps(uint tk, uint* pmd, uint* pulSequence, char* szName, uint cchName, uint* pchName, uint* pdwAttr, uint* pdwCPlusTypeFlag, void** ppValue, uint* pcchValue)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, uint*, char*, uint, uint*, uint*, uint*, void**, uint*, int> )__vtable[59]);
        {
            int __retVal;
            {
                __retVal = __target(__this, tk, pmd, pulSequence, szName, cchName, pchName, pdwAttr, pdwCPlusTypeFlag, ppValue, pcchValue);
            }
    
            // 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_GetParamProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint tk, uint* pmd, uint* pulSequence, char* szName, uint cchName, uint* pchName, uint* pdwAttr, uint* pdwCPlusTypeFlag, void** ppValue, uint* pcchValue)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetParamProps(tk, pmd, pulSequence, szName, cchName, pchName, pdwAttr, pdwCPlusTypeFlag, ppValue, pcchValue);
        }
        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.IMetaDataImport.GetCustomAttributeByName(uint tkObj, char* szName, void** ppData, uint* pcbData)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, char*, void**, uint*, int> )__vtable[60]);
        {
            int __retVal;
            {
                __retVal = __target(__this, tkObj, szName, ppData, pcbData);
            }
    
            // 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_GetCustomAttributeByName(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint tkObj, char* szName, void** ppData, uint* pcbData)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetCustomAttributeByName(tkObj, szName, ppData, pcbData);
        }
        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.IMetaDataImport.IsValidToken(uint tk)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, int> )__vtable[61]);
        {
            int __retVal;
            {
                __retVal = __target(__this, tk);
            }
    
            // 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_IsValidToken(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint tk)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.IsValidToken(tk);
        }
        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.IMetaDataImport.GetNestedClassProps(uint tdNestedClass, uint* ptdEnclosingClass)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, uint*, int> )__vtable[62]);
        {
            int __retVal;
            {
                __retVal = __target(__this, tdNestedClass, ptdEnclosingClass);
            }
    
            // 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_GetNestedClassProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint tdNestedClass, uint* ptdEnclosingClass)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetNestedClassProps(tdNestedClass, ptdEnclosingClass);
        }
        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.IMetaDataImport.GetNativeCallConvFromSig(void* pvSig, uint cbSig, uint* pCallConv)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, void*, uint, uint*, int> )__vtable[63]);
        {
            int __retVal;
            {
                __retVal = __target(__this, pvSig, cbSig, pCallConv);
            }
    
            // 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_GetNativeCallConvFromSig(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, void* pvSig, uint cbSig, uint* pCallConv)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.GetNativeCallConvFromSig(pvSig, cbSig, pCallConv);
        }
        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.IMetaDataImport.IsGlobal(uint pd, int* pbGlobal)
    {
        var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport));
        var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, int*, int> )__vtable[64]);
        {
            int __retVal;
            {
                __retVal = __target(__this, pd, pbGlobal);
            }
    
            // 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_IsGlobal(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint pd, int* pbGlobal)
    {
        global::Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport @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.IMetaDataImport>(__this_native);
            __retVal = @this.IsGlobal(pd, pbGlobal);
        }
        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 IMetaDataImport
    {
    }
}