<PackageReference Include="System.Drawing.Common" Version="9.0.0-preview.7.24405.4" />

BinaryFormattedObject

sealed class BinaryFormattedObject
Object model for the binary format put out by BinaryFormatter. It parses and creates a model but does not instantiate any reference types outside of string.
public IRecord this[Id id] { get; }

Gets a record by it's identifier. Not all records have identifiers, only ones that can be referenced by other records.

public IReadOnlyRecordMap RecordMap { get; }

public IRecord RootRecord { get; }

The Id of the root record of the object graph.

public BinaryFormattedObject(Stream stream, Options options = null)

Creates BinaryFormattedObject by parsing stream.

public object Deserialize()

Deserializes the BinaryFormattedObject back to an object.