Community

Why enumerator structs are a really bad idea

(Simon Cooper) If you’ve ever poked around the .NET class libraries in Reflector, you probably would have noticed that the generic collection classes all have implementations of their IEnumerator as a struct rather than a class. As you will see, this design decision has some rather unfortunate side

Read More - Register for Free Membership