mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* ValidationHandler.cs: New file. * XmlSchemaInfo.cs: New file. * *.cs: More updates from Ajay. svn path=/trunk/mcs/; revision=4075
52 lines
1001 B
C#
Executable File
52 lines
1001 B
C#
Executable File
// Author: Dwivedi, Ajay kumar
|
|
// [email protected]
|
|
using System;
|
|
using System.Collections;
|
|
using System.Xml;
|
|
|
|
namespace System.Xml.Schema
|
|
{
|
|
/// <summary>
|
|
/// Summary description for XmlSchemaObjectTable.
|
|
/// </summary>
|
|
public class XmlSchemaObjectTable
|
|
{
|
|
private Hashtable table;
|
|
|
|
internal XmlSchemaObjectTable()
|
|
{
|
|
table = new Hashtable();
|
|
}
|
|
public int Count
|
|
{
|
|
get{ return table.Count; }
|
|
}
|
|
public XmlSchemaObject this[XmlQualifiedName name]
|
|
{
|
|
get{ return (XmlSchemaObject) table[name]; }
|
|
}
|
|
public ICollection Names
|
|
{
|
|
get{ return table.Keys; }
|
|
}
|
|
public ICollection Values
|
|
{
|
|
get{ return table.Values;}
|
|
}
|
|
|
|
public bool Contains(XmlQualifiedName name)
|
|
{
|
|
return table.Contains(name);
|
|
}
|
|
public IDictionaryEnumerator GetEnumerator()
|
|
{
|
|
return table.GetEnumerator();
|
|
}
|
|
|
|
internal void Add(XmlQualifiedName name, XmlSchemaObject value)
|
|
{
|
|
table.Add(name,value);
|
|
}
|
|
}
|
|
}
|