M
marcosegurini
Hi,
the following class describes my actual problem:
class DeepCopy<T>
{
T val_;
public void Assign(T newVal)
{
// Here I like to perform DEEP-COPY of newVal and assign it to
val_.
}
}
I am looking for a uniform way to perform the deep-copy for both
reference and value types.
This uniform way should not use the ICloneable interface because my
program uses System.Drawing.Point at-large (and other existing
class/struct) that does not implement this interface.
Thanks a lot for any suggestion.
Marco.
the following class describes my actual problem:
class DeepCopy<T>
{
T val_;
public void Assign(T newVal)
{
// Here I like to perform DEEP-COPY of newVal and assign it to
val_.
}
}
I am looking for a uniform way to perform the deep-copy for both
reference and value types.
This uniform way should not use the ICloneable interface because my
program uses System.Drawing.Point at-large (and other existing
class/struct) that does not implement this interface.
Thanks a lot for any suggestion.
Marco.