Mono Class Library: System.CharEnumerator Overview | Members

System.CharEnumerator.Clone Method

Creates a copy of the current instance. [Edit]

public object Clone ()

Returns

A object with the same state as the current instance. [Edit]

Remarks

The return value is a object containing a copy of the state of the current instance when this method is invoked. This object must be cast explicitly to a CharEnumerator to be made usable as one.

Note:

This method is useful for saving the state of a CharEnumerator object while iterating through the characters of a string .

This method is implemented to support the ICloneable interface.

[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0