Piccolo.NET

PStream.WriteConditionalObject Method 

Conditionally adds the given object to the given System.Runtime.Serialization.SerializationInfo, using the specified name.

public static void WriteConditionalObject(
   SerializationInfo info,
   string name,
   object obj
);

Parameters

info
The SerializationInfo to add the object to.
name
The name to use when adding the object to the SerializationInfo.
obj
The object to add to the SerializationInfo.

Remarks

This method only serializes the specified object if there is a strong reference (if it has already been written) to that object elsewhere in the stream.

See Also

PStream Class | UMD.HCIL.Piccolo.Util Namespace