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 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.