This was probably 4.5 years back when I was an absolute newbie. And even though I knew that arrays were reference types, I guess, the ramification of doing this arr1 = arr2 had not fully sunk in. And I spent hours trying to debug as to what was messing up my lists. Finally, I got to the point where I saw changes in one array was causing changes in the other. That was my "Ahaa" moment. A moment that truly taught me what reference types meant.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This was probably 4.5 years back when I was an absolute newbie. And even though I knew that arrays were reference types, I guess, the ramification of doing this
arr1 = arr2
had not fully sunk in. And I spent hours trying to debug as to what was messing up my lists. Finally, I got to the point where I saw changes in one array was causing changes in the other. That was my "Ahaa" moment. A moment that truly taught me what reference types meant.