Since the IEnumerator<T> interface implements IDisposable, we should make sure to dispose of the enumerator when manually iterating over the elements.
Since the IEnumerator<T> interface implements IDisposable, we should make sure to dispose of the enumerator when manually iterating over the elements.