January 2005 - Posts

The reason why IEnumerator extens IDisposable
Lot ’s of people asked me why IEnumerator<T> extends IDisposable. We did this to support some obscure, yet important scenarios where an enumerator enumerates database rows, or files in a directory, etc. In such cases, the enumerator usually opens Read More...
Page view tracker