XmlSchemaCollectionEnumerator.cs 910 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Author: Dwivedi, Ajay kumar
  2. // [email protected]
  3. using System;
  4. using System.Collections;
  5. namespace System.Xml.Schema
  6. {
  7. /// <summary>
  8. /// Summary description for XmlSchemaCollectionEnumerator.
  9. /// </summary>
  10. public sealed class XmlSchemaCollectionEnumerator : IEnumerator
  11. {
  12. private IDictionaryEnumerator xenum;
  13. internal XmlSchemaCollectionEnumerator(Hashtable htable)
  14. {
  15. this.xenum = htable.GetEnumerator();
  16. }
  17. // Properties
  18. public XmlSchema Current
  19. {
  20. get
  21. {
  22. return (XmlSchema) xenum.Current;
  23. }
  24. }
  25. // Methods
  26. public bool MoveNext()
  27. {
  28. return xenum.MoveNext();
  29. }
  30. //Explicit Interface implementation
  31. bool IEnumerator.MoveNext()
  32. {
  33. return xenum.MoveNext();
  34. }
  35. void IEnumerator.Reset()
  36. {
  37. xenum.Reset();
  38. }
  39. object IEnumerator.Current
  40. {
  41. get{return (XmlSchema) xenum.Current;}
  42. }
  43. }
  44. }