The element in the collection over which the current instance is positioned.
Type Reason An unspecified exception type
If the previous call to IEnumerator.MoveNext returned false , indicating the end of the collection.
IEnumerator`1.Current is undefined under any of the following conditions:
The enumerator is positioned before the first element in the collection, immediately after the enumerator is created. IEnumerator.MoveNext must be called to advance the enumerator to the first element of the collection before reading the value of IEnumerator`1.Current.
The last call to IEnumerator.MoveNext returned false, which indicates the end of the collection.
The enumerator is invalidated due to changes made in the collection, such as adding, modifying, or deleting elements.