KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a class that gets in its constructor a list of objects, List<Object> . Each time the list could be made out of elements from a different type . It's something generic, and I don't know what their class type will be. I want to save my self a copy of that list, before letting the user change its values. But since the copy is done by reference, both lists (original and copy) are being changed... How can I copy my list by value?
Tags (comma-separated)
Save Edits
Cancel