ZedGraph LogoZedGraph Class Library Documentation
System.ICloneable.Clone Method
NamespacesZedGraphAxisICloneable..::Clone()()
Implement the ICloneable interface in a typesafe manner by just calling the typed version of Clone.
Declaration Syntax
C#Visual BasicVisual C++
Private Function System.ICloneable.Clone As Object Implements ICloneable.Clone
private:
virtual Object^ System.ICloneable.Clone () sealed = ICloneable::Clone
Return Value
A deep copy of this object
Remarks
Note that this method must be called with an explicit cast to ICloneable, and that it is inherently virtual. For example:
CopyC#
ParentClass foo = new ChildClass();
ChildClass bar = (ChildClass) ((ICloneable)foo).Clone();
Assume that ChildClass is inherited from ParentClass. Even though foo is declared with ParentClass, it is actually an instance of ChildClass. Calling the ICloneable implementation of Clone() on foo actually calls ChildClass.Clone() as if it were a virtual function.

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621