2 // System.CharEnumerator.cs
4 // Author: Duncan Mak (duncan@ximian.com)
9 using System.Collections;
14 public sealed class CharEnumerator : IEnumerator, ICloneable
20 internal CharEnumerator (string s)
31 throw new InvalidOperationException ("The position is not valid.");
37 object IEnumerator.Current {
40 throw new InvalidOperationException ("The position is not valid");
46 public object Clone ()
48 CharEnumerator x = new CharEnumerator (str);
53 public bool MoveNext ()
55 if (idx > str.Length) {