/// <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) { FieldMarshalRow row; WriteTable(TokenTypes.FieldMarshal, metadataSource, token => { metadataSource.Read(token, out row); metadataWriter.WriteHasFieldMarshalIndex(row.ParentTableIdx); metadataWriter.Write(row.NativeTypeBlobIdx); }); }
/// <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) { FieldMarshalRow row; WriteTable(TokenTypes.FieldMarshal, metadataSource, token => { metadataSource.Read(token, out row); metadataWriter.WriteHasFieldMarshalIndex(row.ParentTableIdx); metadataWriter.Write(row.NativeTypeBlobIdx); }); }