ReadOnlySpan<T>.GetEnumerator Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne un énumérateur pour ce ReadOnlySpan<T>.
public:
ReadOnlySpan<T>::Enumerator GetEnumerator();
public ReadOnlySpan<T>.Enumerator GetEnumerator();
member this.GetEnumerator : unit -> ReadOnlySpan<'T>.Enumerator
Public Function GetEnumerator () As ReadOnlySpan(Of T).Enumerator
Retours
Énumérateur pour cette étendue en lecture seule.
Remarques
Au lieu d’appeler directement la méthode GetEnumerator, vous pouvez utiliser l’instruction C# foreach et l’instruction Visual Basic For Each... construction Next pour énumérer un ReadOnlySpan<T>.