how to create an copy of an object
I am using c#.net(2005)
The problem with the assignment like is,
Object obj=new object();
Obj=this; (current class)
Reflection (i.e) if we change in the Copied object the pasted object is changing according to the change made.
Can you please help me in this.
For "simple" objects whose properties are value types, create a Clone method for the object that uses MemberwiseClone to make a shallow copy.
For objects with properties that are reference types, implement the ICloneable interface.
Last Post: 06-11-2006, 12:19 PM
By shachar in forum VB Classic
Last Post: 03-31-2001, 02:02 AM
By Mary in forum Architecture and Design
Last Post: 12-08-2000, 01:37 PM
By Michael Kascher in forum VB Classic
Last Post: 05-31-2000, 03:48 PM
By Steven King in forum VB Classic
Last Post: 04-19-2000, 01:05 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL