System.Runtime.Serialization.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);
}
}