A
almurph
Hi,
I'm working with a static classes and need to make a copy of an
object as I have to send it through a method that changes it and I
need both the original object and the newly altered object.
I'm doing something like as follows:
type originalObject;
type copyObject;
copyObject = originalObject;
SomeMethod(copyObject);
However I am noticing that the "originalObject" is being altered as
well. Any suggestions/comments/advice/code-samp-les that you may be
able to offer woudl be most appreciated.
Cheers,
Al.
I'm working with a static classes and need to make a copy of an
object as I have to send it through a method that changes it and I
need both the original object and the newly altered object.
I'm doing something like as follows:
type originalObject;
type copyObject;
copyObject = originalObject;
SomeMethod(copyObject);
However I am noticing that the "originalObject" is being altered as
well. Any suggestions/comments/advice/code-samp-les that you may be
able to offer woudl be most appreciated.
Cheers,
Al.