2 // System.CharEnumerator.cs
4 // Author: Duncan Mak (duncan@ximian.com)
9 using System.Collections;
14 public sealed class CharEnumerator : IEnumerator, ICloneable
21 internal CharEnumerator (string s)
32 throw new InvalidOperationException ("The position is not valid.");
38 object IEnumerator.Current
41 throw new InvalidOperationException ("The position is not valid");
48 public object Clone ()
50 CharEnumerator x = new CharEnumerator (str);
55 public bool MoveNext ()