new object instace

  • Thread starter Thread starter Bilal Abbasi
  • Start date Start date
B

Bilal Abbasi

I have a class. After instantiating that class, If I were to try and create
a copy of the instantiated object as a separate object, what is the easiest
way other than re-populating each and every object declared inside that
class.

Bilal Abbasi.
 
Bilal Abbasi said:
I have a class. After instantiating that class, If I were to try and
create a copy of the instantiated object as a separate object, what
is the easiest way other than re-populating each and every object
declared inside that class.

According to the documentation, the event is not "made for the usage from
our code".
 
* "Bilal Abbasi said:
I have a class. After instantiating that class, If I were to try and create
a copy of the instantiated object as a separate object, what is the easiest
way other than re-populating each and every object declared inside that
class.

If you are talking about your own class, implement 'ICloneable'. Have a
Google Search (<http://www.deja.com>) for more info on how to implement
this interface.
 
Back
Top