I noticed that List defines its enumerator as a struct, while ArrayList defines its enumerator as a class. What\'s t
List
struct
ArrayList
class
An enumerator is inherently a changing structure, since it needs to update internal state to move on to the next value in the original collection.
In my opinion, structs should be immutable, so I would use a class.