/// <summary>
        /// Writes the assembly ref OS table.
        /// </summary>
        /// <param name="metadataSource">The metadata source.</param>
        /// <param name="metadataWriter">The metadata writer.</param>
        private static void WriteAssemblyRefOSTable(IMetadataProvider metadataSource, MetadataBuilderStage metadataWriter)
        {
            WriteTable(TokenTypes.AssemblyRefOS, metadataSource, token =>
            {
                AssemblyRefOSRow row = metadataSource.ReadAssemblyRefOSRow(token);

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