IFormatter Interface
Provides functionality for formatting serialized objects.
For a list of all members of this type, see IFormatter Members.
[Visual Basic] Public Interface IFormatter [C#] public interface IFormatter [C++] public __gc __interface IFormatter [JScript] public interface IFormatter
Classes that Implement IFormatter
| Class | Description |
|---|---|
| BinaryFormatter | Serializes and deserializes an object, or an entire graph of connected objects, in binary format. |
| Formatter | Provides base functionality for the common language runtime serialization formatters. |
| SoapFormatter | Serializes and deserializes an object, or an entire graph of connected objects, in SOAP format. |
Remarks
This interface must be implemented by any class identified as a formatter in the System.Runtime.Serialization architecture.
Objects controlling their own serialization can do so by implementing the ISerializable interface. In order for an object to be serialized, you must mark that object as being serializable. You can do this by applying the serializable attribute to a class. If any object in the graph is not serializable, serialization will fail.
Notes to Implementers: All formatters must implement this interface. Use Serialize to serialize an object or graph of objects. Use Deserialize to deserialize a stream and create a clone of the original object or graph of objects.
Requirements
Namespace: System.Runtime.Serialization
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Mscorlib (in Mscorlib.dll)
See Also
IFormatter Members | System.Runtime.Serialization Namespace | XML and SOAP Serialization | Formatter | ISerializable