<PackageReference Include="System.Runtime.Serialization.Formatters" Version="11.0.0-preview.7.26381.103" />

System.Runtime.Serialization.IFormatter

public interface IFormatter
Provides functionality for formatting serialized objects.
namespace System.Runtime.Serialization { public interface IFormatter { const string RequiresDynamicCodeMessage = "BinaryFormatter serialization uses dynamic code generation, the type of objects being processed cannot be statically discovered."; const string RequiresUnreferencedCodeMessage = "BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered."; ISurrogateSelector SurrogateSelector { get; set; } SerializationBinder Binder { get; set; } StreamingContext Context { get; set; } object Deserialize(Stream serializationStream); void Serialize(Stream serializationStream, object graph); } }