fixed member accessibility to match MS (corcompare).
[mono.git] / mcs / class / System.XML / System.Xml.Schema / XmlSchemaObjectTable.cs
1 // Author: Dwivedi, Ajay kumar\r
2 //            Adwiv@Yahoo.com\r
3 using System;\r
4 using System.Collections;\r
5 using System.Xml;\r
6 \r
7 namespace System.Xml.Schema\r
8 {\r
9         /// <summary>\r
10         /// Summary description for XmlSchemaObjectTable.\r
11         /// </summary>\r
12         public class XmlSchemaObjectTable\r
13         {\r
14                 private Hashtable table;\r
15 \r
16                 internal XmlSchemaObjectTable()\r
17                 {\r
18                         table = new Hashtable(); \r
19                 }\r
20                 public int Count \r
21                 {\r
22                         get{ return table.Count; }\r
23                 }\r
24                 public XmlSchemaObject this[XmlQualifiedName name] \r
25                 {\r
26                         get{ return (XmlSchemaObject) table[name]; }\r
27                 }\r
28                 public ICollection Names \r
29                 {\r
30                         get{ return table.Keys; }\r
31                 }\r
32                 public ICollection Values \r
33                 {\r
34                         get{ return table.Values;}\r
35                 }\r
36 \r
37                 public bool Contains(XmlQualifiedName name)\r
38                 {\r
39                         return table.Contains(name);\r
40                 }\r
41                 public IDictionaryEnumerator GetEnumerator()\r
42                 {\r
43                         return table.GetEnumerator();\r
44                 }\r
45         }\r
46 }\r