/// <summary>
        /// Writes the manifest resource table.
        /// </summary>
        /// <param name="metadataSource">The metadata source.</param>
        /// <param name="metadataWriter">The metadata writer.</param>
        private static void WriteManifestResourceTable(IMetadataProvider metadataSource, MetadataBuilderStage metadataWriter)
        {
            WriteTable(TokenTypes.ManifestResource, metadataSource, token =>
            {
                ManifestResourceRow row = metadataSource.ReadManifestResourceRow(token);

                metadataWriter.Write(row.Offset);
                metadataWriter.Write((uint)row.Flags);
                metadataWriter.Write(row.NameStringIdx);
                metadataWriter.WriteImplementationIndex(row.ImplementationTableIdx);
            });
        }