Gets the current entry in the collection.
Assembly: mscorlib (in mscorlib.dll)
The property is accessed before first calling the MoveNext method. The cursor is located before the first object in the collection.
The property is accessed after a call to the MoveNext method returns false, which indicates that the cursor is located after the last object in the collection.
When the enumerator is created, it does not point to an object, so the property is not valid and will throw an exception if it is accessed. You must first call the MoveNext method to position the cursor at the first object in the collection.