ReadOnlySpan<T>.Enumerator.MoveNext ReadOnlySpan<T>.Enumerator.MoveNext ReadOnlySpan<T>.Enumerator.MoveNext ReadOnlySpan<T>.Enumerator.MoveNext Method

定義

列挙子を ReadOnlySpan<T> の次の項目に進めます。Advances the enumerator to the next item of the ReadOnlySpan<T>.

public:
 bool MoveNext();
public bool MoveNext ();
member this.MoveNext : unit -> bool
Public Function MoveNext () As Boolean

戻り値

列挙子が次の項目に正常に進んだ場合は true、範囲の末尾を超えた場合は false です。true if the enumerator successfully advanced to the next item; false if the end of the span has been passed.

注釈

列挙子が作成された後、列挙子はスパンの最初の要素の前に配置されます。MoveNextの最初の呼び出しで、列挙子をスパンの最初の項目に進めます。After an enumerator is created, it is positioned before the first element in the span, and the first call to MoveNext advances the enumerator to the first item in the span.

MoveNextが範囲の末尾を超えた場合、MoveNextfalseを返します。If MoveNext passes the end of the span, MoveNext returns false. 列挙子がこの状態にある場合、MoveNextの後続の呼び出しもfalseを返します。When the enumerator is at this state, subsequent calls to MoveNext also return false.

適用対象