M
Matias Hernandez
Hello there! I'm fairly new to C#, so please excuse me if this
question seems somewhat basic. I need a way to copy the fields from
one object into another. It's akin to the Clone() method, however in
this case the destination object already exists and I cannot replace
it with another instance. Something like "public void CloneInto(Object
copy);".
I suppose this can be done manually by using Reflection, but maybe
this problem is already solved in .NET and I just haven't found that
solution...
Best regards,
- Matias
question seems somewhat basic. I need a way to copy the fields from
one object into another. It's akin to the Clone() method, however in
this case the destination object already exists and I cannot replace
it with another instance. Something like "public void CloneInto(Object
copy);".
I suppose this can be done manually by using Reflection, but maybe
this problem is already solved in .NET and I just haven't found that
solution...
Best regards,
- Matias