Files
mono/mcs/class/System.XML/System.Xml.Schema/XmlSchemaObjectTable.cs
T
Miguel de Icaza aa2c54ee1f Add System.Xml.Schema from Ajay
svn path=/trunk/mcs/; revision=3216
2002-03-19 15:27:27 +00:00

47 lines
896 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;
protected 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();
}
}
}