I'm trying to copy an array, then altering the copy (mainly removing elements), but the copy is altering the original as well.
What I've tried
- I've tried using the duplicate feature for arrays (setting deep as TRUE), but it's not creating unique instances.
- I've tried using a loop and appending each element from the array individually, but they're still referencing the original.
Only thing I could think maybe is messing with it is that it's coming from an array that is within a Dictionary, if that makes a difference.
Has anyone had this issue before? Or does anyone know if there's a way to do it properly?