SortedSet<T>.IEnumerable<T>.GetEnumerator 方法

定義

傳回逐一查看集合的列舉值。Returns an enumerator that iterates through a collection.

 virtual System::Collections::Generic::IEnumerator<T> ^ System.Collections.Generic.IEnumerable<T>.GetEnumerator() = System::Collections::Generic::IEnumerable<T>::GetEnumerator;
System.Collections.Generic.IEnumerator<T> IEnumerable<T>.GetEnumerator ();
abstract member System.Collections.Generic.IEnumerable<T>.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<'T>
override this.System.Collections.Generic.IEnumerable<T>.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<'T>
Function GetEnumerator () As IEnumerator(Of T) Implements IEnumerable(Of T).GetEnumerator

傳回

IEnumerator<T>

可用來逐一查看集合的列舉值。An enumerator that can be used to iterate through the collection.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 SortedSet<T> 執行個體轉換成 IEnumerable<T> 介面時,才能使用這個成員。It can be used only when the SortedSet<T> instance is cast to an IEnumerable<T> interface.

這個方法是一項作業 O(log n)This method is an O(log n) operation.

適用於