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