mscorlib(4.0.0.0) API with additions
XmlSchemaObjectEnumerator.cs
1 using System.Collections;
2 
3 namespace System.Xml.Schema
4 {
7  {
8  private IEnumerator enumerator;
9 
13 
16  object IEnumerator.Current
17  {
18  get
19  {
20  return enumerator.Current;
21  }
22  }
23 
24  internal XmlSchemaObjectEnumerator(IEnumerator enumerator)
25  {
26  this.enumerator = enumerator;
27  }
28 
30  public void Reset()
31  {
32  enumerator.Reset();
33  }
34 
38  public bool MoveNext()
39  {
40  return enumerator.MoveNext();
41  }
42 
44  void IEnumerator.Reset()
45  {
46  enumerator.Reset();
47  }
48 
51  bool IEnumerator.MoveNext()
52  {
53  return enumerator.MoveNext();
54  }
55  }
56 }
void Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
bool MoveNext()
Advances the enumerator to the next element of the collection.
XmlSchemaObject Current
Gets the current T:System.Xml.Schema.XmlSchemaObject in the collection.
Definition: __Canon.cs:3
Represents the root class for the Xml schema object model hierarchy and serves as a base class for cl...
bool MoveNext()
Moves to the next item in the collection.
void Reset()
Resets the enumerator to the start of the collection.
object Current
Gets the element in the collection at the current position of the enumerator.
Definition: IEnumerator.cs:15
Represents the enumerator for the T:System.Xml.Schema.XmlSchemaObjectCollection.
Supports a simple iteration over a non-generic collection.
Definition: IEnumerator.cs:9