Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HashSet<T>.Enumerator.IEnumerator.Current Property

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.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft