Hello; I need to create a copy of an object, not just a reference to it. Is there anyway to do this? These were the first things I came up with:
but alas, objects don't implement the ICloneable interface, nor do they have a copy constructor. What's a boy to do?Code:object copy = ((ICloneable)original).Clone(); object copy = new object(original);





Reply With Quote