3 ms·
Yeah I believe you are talking about enumerating over the interface versus the concrete class? (For others) Most of .NET frameworks generic collections impleme
by joshjje 9y ago
Yeah I believe you are talking about enumerating over the interface versus the concrete class?
(For others) Most of .NET frameworks generic collections implement the enumerator as a struct which doesnt get allocated on the heap and subsequently garbage collected, but the explicit interfaces implementations use a class which does.