Files
mono/mcs/class/System.XML/System.Xml.Schema/XmlSchemaCollectionEnumerator.cs
T
Ajay kumar Dwivedi 74f114a665 2002-06-10 Dwivedi, Ajay kumar <[email protected]>
* XmlSchemaReader: A Wrapper class around XmlReader with customized
	  methods to suit reading a schema.
	* General: Implemented Read() method for the schema. There are only
	  a few minor bugs remaining.

svn path=/trunk/mcs/; revision=5200
2002-06-10 08:36:16 +00:00

48 lines
910 B
C#
Executable File

// 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;
internal XmlSchemaCollectionEnumerator(Hashtable htable)
{
this.xenum = htable.GetEnumerator();
}
// Properties
public XmlSchema Current
{
get
{
return (XmlSchema) xenum.Current;
}
}
// 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 (XmlSchema) xenum.Current;}
}
}
}