Exemplo n.º 1
0
        /// <summary>
        /// Writes the typeref table.
        /// </summary>
        /// <param name="metadataSource">The metadata source.</param>
        /// <param name="metadataWriter">The metadata writer.</param>
        private static void WriteTypeRefTable(IMetadataProvider metadataSource, MetadataBuilderStage metadataWriter)
        {
            TypeRefRow row;

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

                metadataWriter.WriteResolutionScopeIndex(row.ResolutionScopeIdx);
                metadataWriter.Write(row.TypeNameIdx);
                metadataWriter.Write(row.TypeNamespaceIdx);
            });
        }
Exemplo n.º 2
0
        /// <summary>
        /// Writes the typeref table.
        /// </summary>
        /// <param name="metadataSource">The metadata source.</param>
        /// <param name="metadataWriter">The metadata writer.</param>
        private static void WriteTypeRefTable(IMetadataProvider metadataSource, MetadataBuilderStage metadataWriter)
        {
            TypeRefRow row;

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

                metadataWriter.WriteResolutionScopeIndex(row.ResolutionScopeIdx);
                metadataWriter.Write(row.TypeNameIdx);
                metadataWriter.Write(row.TypeNamespaceIdx);
            });
        }