/// <summary> /// Creates a new instance of the <see cref="ImplementationMap"/> class. /// </summary> /// <param name="scope">The scope that declares the imported member.</param> /// <param name="name">The name of the imported member.</param> /// <param name="attributes">The attributes associated to the implementation mapping.</param> public ImplementationMap(ModuleReference scope, string name, ImplementationMapAttributes attributes) : this(new MetadataToken(TableIndex.ImplMap, 0)) { Scope = scope; Name = name; Attributes = attributes; }
/// <summary> /// Creates a new row for the implementation map metadata table. /// </summary> /// <param name="attributes">The attributes associated to the implementation mapping.</param> /// <param name="memberForwarded">The MemberForwarded index (an index into either the Field or Method table) /// indicating the member that was assigned P/Invoke information.</param> /// <param name="importName">The index into the #Strings stream referencing the name of the imported member.</param> /// <param name="importScope">The index into the ModuleRef table indicating the module that this imported member defines.</param> public ImplementationMapRow(ImplementationMapAttributes attributes, uint memberForwarded, uint importName, uint importScope) { Attributes = attributes; MemberForwarded = memberForwarded; ImportName = importName; ImportScope = importScope; }