Esempio n. 1
0
        /// <summary>
        /// Writes the method semantics table.
        /// </summary>
        /// <param name="metadataSource">The metadata source.</param>
        /// <param name="metadataWriter">The metadata writer.</param>
        private static void WriteMethodSemanticsTable(IMetadataProvider metadataSource, MetadataBuilderStage metadataWriter)
        {
            MethodSemanticsRow row;

            WriteTable(TokenTypes.MethodSemantics, metadataSource, token =>
            {
                metadataSource.Read(token, out row);

                metadataWriter.Write((ushort)row.Semantics);
                metadataWriter.Write(row.MethodTableIdx);
                metadataWriter.WriteHasSemanticsIndex(row.AssociationTableIdx);
            });
        }
        /// <summary>
        /// Writes the method semantics table.
        /// </summary>
        /// <param name="metadataSource">The metadata source.</param>
        /// <param name="metadataWriter">The metadata writer.</param>
        private static void WriteMethodSemanticsTable(IMetadataProvider metadataSource, MetadataBuilderStage metadataWriter)
        {
            MethodSemanticsRow row;
            WriteTable(TokenTypes.MethodSemantics, metadataSource, token =>
            {
                metadataSource.Read(token, out row);

                metadataWriter.Write((ushort)row.Semantics);
                metadataWriter.Write(row.MethodTableIdx);
                metadataWriter.WriteHasSemanticsIndex(row.AssociationTableIdx);
            });
        }