PostSharp//API Reference/Post­Sharp.​Serialization/Portable­Formatter/Serialize
Open sandboxFocus

Method Serialize

Serialize(Object, Stream)

Serializes an object (and the complete graph whose this object is the root) into a Stream.

Declaration
public void Serialize(object obj, Stream stream)
Parameters
Type Name Description
Object obj

The object to serialize.

Stream stream

The stream where obj needs to be serialized.