Welcome to mirror list, hosted at ThFree Co, Russian Federation.

XmlSchemaObjectTable.cs « System.Xml.Schema « System.XML « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 16461b9875c22b093bf0f8362857a77bc0f86ca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Author: Dwivedi, Ajay kumar
//            Adwiv@Yahoo.com
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);
		}
	}
}