PostSharp4.3//API Reference/Post­Sharp.​Serialization Namespace/Portable­Formatter Class/Portable­Formatter Methods/Portable­Formatter.​Serialize Method
PortableFormatter.Serialize Method
Serializes an object (and the complete graph whose this object is the root) into a Stream.

Namespace: PostSharp.Serialization
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public void Serialize(
	Object obj,
	Stream stream
)

Parameters

obj
Type: System.Object
The object to serialize.
stream
Type: System.IO.Stream
The stream where obj needs to be serialized.
See Also