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
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center