M
Michael.Suarez
Basically I want to do something like this (psuedo-code):
you have:
MyClass MyObject;
which is instantiated in the form load.
You have a copy function:
{
MyClass MyObjectCopy = new MyClass(id);
foreach (property p in MyClass.properties)
{
MyObject.p = MyObjectCopy.p;
}
}
This copy function obviously won't work as is. What would be the
correct way to simulate what I am trying to do here, or at least some
hints to get me started?
Thanks,
Mike
you have:
MyClass MyObject;
which is instantiated in the form load.
You have a copy function:
{
MyClass MyObjectCopy = new MyClass(id);
foreach (property p in MyClass.properties)
{
MyObject.p = MyObjectCopy.p;
}
}
This copy function obviously won't work as is. What would be the
correct way to simulate what I am trying to do here, or at least some
hints to get me started?
Thanks,
Mike