mscorlib(4.0.0.0) API with additions
XmlSchemaCollectionEnumerator.cs
1 using System.Collections;
2 
3 namespace System.Xml.Schema
4 {
7  {
8  private IDictionaryEnumerator enumerator;
9 
12  object IEnumerator.Current
13  {
14  get
15  {
16  return Current;
17  }
18  }
19 
22  public XmlSchema Current => ((XmlSchemaCollectionNode)enumerator.Value)?.Schema;
23 
24  internal XmlSchemaCollectionNode CurrentNode => (XmlSchemaCollectionNode)enumerator.Value;
25 
26  internal XmlSchemaCollectionEnumerator(Hashtable collection)
27  {
28  enumerator = collection.GetEnumerator();
29  }
30 
32  void IEnumerator.Reset()
33  {
34  enumerator.Reset();
35  }
36 
39  bool IEnumerator.MoveNext()
40  {
41  return enumerator.MoveNext();
42  }
43 
47  public bool MoveNext()
48  {
49  return enumerator.MoveNext();
50  }
51  }
52 }
bool MoveNext()
Advances the enumerator to the next schema in the collection.
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.
Definition: __Canon.cs:3
Supports a simple iteration over a collection. This class cannot be inherited.
Represents a collection of key/value pairs that are organized based on the hash code of the key....
Definition: Hashtable.cs:17
object Current
Gets the element in the collection at the current position of the enumerator.
Definition: IEnumerator.cs:15
An in-memory representation of an XML Schema, as specified in the World Wide Web Consortium (W3C) XML...
Definition: XmlSchema.cs:13
Enumerates the elements of a nongeneric dictionary.
Supports a simple iteration over a non-generic collection.
Definition: IEnumerator.cs:9