IEnumerator.Current Property
Collapse the table of content
Expand the table of content

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.

Namespace:  System.Collections.Generic
Assembly:  System.Core (in System.Core.dll)

Object IEnumerator.Current { get; }

Property Value

Type: System.Object
The element in the collection at the current position of the enumerator, as an Object.

Implements

IEnumerator.Current

ExceptionCondition
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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft