/// <summary>
        /// Writes the field marshal table.
        /// </summary>
        /// <param name="metadataSource">The metadata source.</param>
        /// <param name="metadataWriter">The metadata writer.</param>
        private static void WriteFieldMarshalTable(IMetadataProvider metadataSource, MetadataBuilderStage metadataWriter)
        {
            WriteTable(TokenTypes.FieldMarshal, metadataSource, token =>
            {
                FieldMarshalRow row = metadataSource.ReadFieldMarshalRow(token);

                metadataWriter.WriteHasFieldMarshalIndex(row.ParentTableIdx);
                metadataWriter.Write(row.NativeTypeBlobIdx);
            });
        }