PostSharp6.2/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: 6.2.11.0 (6.2.11.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