Thursday, June 18, 2009

C# Clone an object

public static void Main(Strings[] args)
{
Point pt1=new Point(150,160);
Point pt2=(Point)pt1.Clone(); //This will return new new object
}

0 comments: