| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- // Author: Dwivedi, Ajay kumar
- // [email protected]
- using System;
- using System.Collections;
- namespace System.Xml.Schema
- {
- /// <summary>
- /// Summary description for XmlSchemaObjectEnumerator.
- /// </summary>
- public sealed class XmlSchemaObjectEnumerator : IEnumerator
- {
- private IDictionaryEnumerator xenum;
- internal XmlSchemaObjectEnumerator(Hashtable htable)
- {
- this.xenum = htable.GetEnumerator();
- }
- // Properties
- public XmlSchemaObject Current
- {
- get
- {
- return (XmlSchema) xenum.Current;
- }
- }
- // Methods
- public bool MoveNext()
- {
- return xenum.MoveNext();
- }
- public void Reset()
- {
- xenum.Reset();
- }
- //Explicit Interface implementation
- bool IEnumerator.MoveNext()
- {
- return xenum.MoveNext();
- }
- void IEnumerator.Reset()
- {
- xenum.Reset();
- }
- object IEnumerator.Current
- {
- get{return (XmlSchema) xenum.Current;}
- }
- }
- }
|