Public Overrides Function Clone() As Object
public override System.Object Clone ()
The Clone method is a member of many classes in GeoCalcNET. It returns a deep-copy of the current instance. A deep-copy is one in which all member objects are cloned so that they are distinct from the members of the original object. In contrast, a shallow-copy is one in which the references to member objects are copied so that the copy has the same members as the original.
The following examples show the user of the Clone method for the GeodeticPoint object, but the usage is the same for all objects.
Private Sub GeoCalcNET_Clone(ByVal originPt As GeoCalcNET.GeodeticPoint)
Dim clonePt As GeoCalcNET.GeodeticPoint = originPt.Clone()
private void GeoCalcNET_Clone(GeoCalcNET.GeodeticPoint originPt)
GeoCalcNET.GeodeticPoint clonePt = (GeoCalcNET.GeodeticPoint)originPt.Clone();