Piccolo.NET

PStream.WriteObjectTree Method 

Serializes the object tree to the underlying stream using the given formatter.

public virtual void WriteObjectTree(
   IFormatter formatter,
   object aRoot
);

Parameters

formatter
The formatter to use when serializing the object.
aRoot
The object to serialize.

Remarks

Applications should call this method to serialize a part of the scene graph. The nodes in the scene graph may then choose to conditionally serialize their references by calling WriteConditionalObject from their GetObjectData method. For example, all nodes implemented in the piccolo framework conditionally serialize their parents so that serializing a node won't pull in the entire object graph. See PNode.GetObjectData.

See Also

PStream Class | UMD.HCIL.Piccolo.Util Namespace


Web Accessibility