/// <summary> /// Writes the event map table. /// </summary> /// <param name="metadataSource">The metadata source.</param> /// <param name="metadataWriter">The metadata writer.</param> private static void WriteEventMapTable(IMetadataProvider metadataSource, MetadataBuilderStage metadataWriter) { WriteTable(TokenTypes.EventMap, metadataSource, token => { EventMapRow row = metadataSource.ReadEventMapRow(token); metadataWriter.Write(row.TypeDefTableIdx); metadataWriter.Write(row.EventListTableIdx); }); }