You wouldn't do that.
Breaks any clean OO design rule.
If you have a functionality that needs to iterate through that list, implement it within the type and call that function that iterates through it and does a special thing.
Examples for that are Update, Draw, CheckCollision
Breaks any clean OO design rule.
If you have a functionality that needs to iterate through that list, implement it within the type and call that function that iterates through it and does a special thing.
Examples for that are Update, Draw, CheckCollision