mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* 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
48 lines
910 B
C#
Executable File
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;}
|
|
}
|
|
}
|
|
}
|