/// <summary>
        /// Writes the generic param constraint table.
        /// </summary>
        /// <param name="metadataSource">The metadata source.</param>
        /// <param name="metadataWriter">The metadata writer.</param>
        private static void WriteGenericParamConstraintTable(IMetadataProvider metadataSource, MetadataBuilderStage metadataWriter)
        {
            WriteTable(TokenTypes.GenericParamConstraint, metadataSource, token =>
            {
                GenericParamConstraintRow row = metadataSource.ReadGenericParamConstraintRow(token);

                metadataWriter.Write(row.OwnerTableIdx);
                metadataWriter.WriteTypeDefOrRefIndex(row.ConstraintTableIdx);
            });
        }