ConcurrentStack<T>.GetEnumerator Metodo

Definizione

Restituisce un enumeratore che scorre l'oggetto ConcurrentStack<T>.

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

Valori restituiti

Enumeratore per .ConcurrentStack<T>

Implementazioni

Commenti

L'enumerazione rappresenta uno snapshot temporizzato del contenuto dello stack. Non riflette gli aggiornamenti alla raccolta dopo GetEnumerator la chiamata. L'enumeratore è sicuro da usare contemporaneamente con letture e scritture nello stack. L'enumeratore restituisce gli elementi nell'ordine LIFO (last-in, first-out).

Si applica a

Vedi anche