A Wildcats list can grow while keeping the same list identity. An object snapshot shows its current items and Count at a particular pause.
This excerpt uses System.Collections.Generic inside an existing method. List<int> stores integer values in order; Add appends and indexed assignment replaces an existing value.
List<int> roundGoals = new List<int>();
roundGoals.Add(2);
roundGoals.Add(0);
roundGoals.Add(3);
roundGoals[1] = 1;Create an empty list of integer round scores
Append 2, then 0, then 3
Replace the item at index 1 with 1
Pause with current items 2, 1, and 3
The current item count is 3These words fix the snapshot moment and separate instances, values, and reference targets. Follow the source to that pause before deciding how many boxes to draw and which current values belong inside them.
roundGoals : List<int>. Use the complete element type in the header.[0], [1], and [2] with current values 2, 1, and 3.Count = 3; after indexed replacement. Use Count rather than the array-specific Length label.Compare this reference with the diagram you built in Violet. Layout may differ; the source meaning, labels, and relevant connections should agree.
The replacement changes one value without changing Count. Appending another score would change Count to 4 and add a new last item to the snapshot.