Welcome to mirror list, hosted at ThFree Co, Russian Federation.

StringEnumerator.cs « System.Collections.Specialized « System « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8be9d7c5a6ec1b57fd141333dd40a555c7389665 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* System.Collections.Specialized.StringEnumerator.cs
 * Authors:
 *   John Barnette (jbarn@httcb.net)
 *
 *  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();
		}
	}
}