GetEnumerator Method

SortedSet<T>.GetEnumerator Method ()

.NET Framework 4.6 and 4.5

Returns an enumerator that iterates through the SortedSet<T>.

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

public SortedSet<T>.Enumerator GetEnumerator()

Return Value

Type: System.Collections.Generic.SortedSet<T>.Enumerator

An enumerator that iterates through the SortedSet<T> in sorted order.

Any changes to the SortedSet<T> will invalidate the enumerator.

This method is an O(log n) operation.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft