System.Collections.Specialized.StringEnumerator.Reset Method

Sets the enumerator to its initial position, which is before the first element in the collection.

Syntax

public void Reset ()

Remarks

StringEnumerator.Reset moves the enumerator to the beginning of the collection, before the first element. After StringEnumerator.Reset, StringEnumerator.MoveNext must be called to advance the enumerator to the first element of the collection before reading the value of StringEnumerator.Current.

Requirements

Namespace: System.Collections.Specialized
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0