コード例 #1
0
        /// <summary>
        /// Writes the assembly OS table.
        /// </summary>
        /// <param name="metadataSource">The metadata source.</param>
        /// <param name="metadataWriter">The metadata writer.</param>
        private static void WriteAssemblyOSTable(IMetadataProvider metadataSource, MetadataBuilderStage metadataWriter)
        {
            WriteTable(TokenTypes.AssemblyOS, metadataSource, token =>
            {
                AssemblyOSRow row = metadataSource.ReadAssemblyOSRow(token);

                metadataWriter.Write((uint)row.PlatformId);
                metadataWriter.Write((uint)row.MajorVersion);
                metadataWriter.Write((uint)row.MinorVersion);
            });
        }