| 123456789101112131415161718192021222324252627282930313233343536 |
- /* System.Collections.Specialized.StringEnumerator.cs
- * Authors:
- * John Barnette ([email protected])
- *
- * Copyright (C) 2001 John Barnette
- */
- namespace System.Collections.Specialized {
- public class StringEnumerator {
- private StringCollection coll;
- private IEnumerator enumerable;
-
- // assembly-scoped constructor
- internal StringEnumerator(StringCollection coll) {
- this.coll = coll;
- this.enumerable = ((IEnumerable)coll).GetEnumerator();
- }
-
- // Public Instance Properties
-
- public string Current {
- get { return (string) enumerable.Current; }
- }
-
-
- // Public Instance Methods
-
- public bool MoveNext() {
- return enumerable.MoveNext();
- }
-
- public void Reset() {
- enumerable.Reset();
- }
- }
- }
|