/// <summary>
        /// Writes the method spec table.
        /// </summary>
        /// <param name="metadataSource">The metadata source.</param>
        /// <param name="metadataWriter">The metadata writer.</param>
        private static void WriteMethodSpecTable(IMetadataProvider metadataSource, MetadataBuilderStage metadataWriter)
        {
            WriteTable(TokenTypes.MethodSpec, metadataSource, token =>
            {
                MethodSpecRow row = metadataSource.ReadMethodSpecRow(token);

                metadataWriter.WriteMethodDefOrRefIndex(row.MethodTableIdx);
                metadataWriter.Write(row.InstantiationBlobIdx);
            });
        }