do you use array in actual code too?
notice that array works a litle bit different that most of other collection types.
Arrays return elements by reference. Most other collections return elements by value.
Structs are value types and not reference types. To change them you need to make a copy and make the change on the copy, then overwrite the entire original with the copy. Alternatively just change the struct into a class.