PostSharpAPI ReferencePost­Sharp.​SerializationPortable­FormatterSerialize
Open sandboxFocus

PortableFormatter.Serialize Method

Serialize(Object, Stream)

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

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

The object to serialize.

System.IO.Stream stream

The stream where obj needs to be serialized.