Constructs a deep-copy clone of graph.
[Visual Basic] Public Function CloneGraph( _ ByVal graph As Object _ ) As Object [C#] public object CloneGraph( object graph ); [C++] public: Object* CloneGraph( Object* graph ); [JScript] public function CloneGraph( graph : Object ) : Object;
A deep-copy clone of graph.
Exception Type | Condition |
---|---|
ArgumentNullException | The graph parameter is a null reference (in Visual Basic Nothing). |
If an object implements ICloneable, we call that first. After that, we use the supplied implementation of ISerializable (if such exists) and finally fall back on the default serialization mechanisms. We copy all fields, but properties are currently ignored.
CloningService Class | CloningService Members | System.Runtime.Serialization Namespace