HashSet<T>.Enumerator.IEnumerator.Current Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the element at the current position of the enumerator.
Assembly: System.Core (in System.Core.dll)
Property Value
Type: System.ObjectThe element in the collection at the current position of the enumerator, as an Object.
Implements
IEnumerator.Current| Exception | Condition |
|---|---|
| InvalidOperationException | The enumerator is positioned before the first element of the collection or after the last element. |
This member is an explicit interface member implementation. It can be used only when the HashSet<T> is cast to an IEnumerator interface.
Show: