XmlSchemaObjectTable.cs 896 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Author: Dwivedi, Ajay kumar
  2. // [email protected]
  3. using System;
  4. using System.Collections;
  5. using System.Xml;
  6. namespace System.Xml.Schema
  7. {
  8. /// <summary>
  9. /// Summary description for XmlSchemaObjectTable.
  10. /// </summary>
  11. public class XmlSchemaObjectTable
  12. {
  13. private Hashtable table;
  14. protected XmlSchemaObjectTable()
  15. {
  16. table = new Hashtable();
  17. }
  18. public int Count
  19. {
  20. get{ return table.Count; }
  21. }
  22. public XmlSchemaObject this[XmlQualifiedName name]
  23. {
  24. get{ return (XmlSchemaObject) table[name]; }
  25. }
  26. public ICollection Names
  27. {
  28. get{ return table.Keys; }
  29. }
  30. public ICollection Values
  31. {
  32. get{ return table.Values;}
  33. }
  34. public bool Contains(XmlQualifiedName name)
  35. {
  36. return table.Contains(name);
  37. }
  38. public IDictionaryEnumerator GetEnumerator()
  39. {
  40. return table.GetEnumerator();
  41. }
  42. }
  43. }