KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have something similar to this: // Declarations: List<SomeType> list1 = new List<SomeType>(); List<SomeType> list2 = new List<SomeType>(); ... SomeType something = new SomeType("SomeName"); list1.Add(something); list2.Add(something); ... list1[indexOfSomething] = new SomeType("SomeOtherName"); And the object in list2 isn't changed... Is that the expected result?
Tags (comma-separated)
Save Edits
Cancel