mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
* XmlSchema.cs : - Changed missingElementTypeRefs from Hashtable to ArrayList. - Added internal XmlSchemas for keeping imported schemas. - Added private Compile() that takes the original rootSchema and schema location stack for nested inclusion check. - Added basic xs:import and xs:include support. - Compile() is now aware of included XmlSchemaObject items. - Changed Compile() to fill missing elements' types and that of referencing elements. - Read() now adds SourceUri property (although only to itself). * XmlSchemaCollection.cs : Implemented Add(). * XmlSchemaCollectionEnumerator.cs : Changed .ctor() to use schema collection as its argument. Fixed Current to return hashtable's Value, instead of Current (which returns DictionaryEntry). * XmlSchemaComplexType.cs : Added internal static AnyType. Compile() is now searches for its base type into other schemas. * XmlSchemaElement.cs : anyType is supported. It now searches for type information after Compile(). SetReferedElementInfo() is now changed to SetSchemaType(). * XmlSchemaObjectTable.cs : It had problems similar to schema collection. Now it uses internal class XmlSchemaObjectTableEnumerator to support GetEnumerator(). * XmlSchemaParticle.cs : added internal class XmlSchemaParticleEmpty and internal static Empty. svn path=/trunk/mcs/; revision=17000
48 lines
962 B
C#
Executable File
48 lines
962 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;
|
|
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; }
|
|
}
|
|
}
|
|
}
|