2 ms·
Exactly the example I've written in my other comment... I guess many people have been bitten by this!
by d--b 9y ago
Exactly the example I've written in my other comment... I guess many people have been bitten by this!
- bunderbunder 9y agoIt seems like a pretty ubiquitous problem. I feel like it's actually just about the least painful in C#, since pretty much every collection interface derives from IEnumerable<T>. It doesn't define have methods for random access or getting the size of the collection, but it is at least immutable, so you can get away with using it quite a bit, maybe even most of the time. In Java, on the other hand. . . woof.