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)
33 throw new InvalidOperationException
34 ("The position is not valid.");
40 object IEnumerator.Current
44 throw new InvalidOperationException
45 ("The position is not valid");
52 public object Clone ()
54 CharEnumerator x = new CharEnumerator (str);
59 public bool MoveNext ()