using System; using System.Collections; using System.Collections.Generic; namespace System.Xml { public class XmlDictionary : IXmlDictionary { static XmlDictionary empty = new XmlDictionary (true); public static XmlDictionary Empty { get { return empty; } } readonly bool isReadOnly; Dictionary dict; public XmlDictionary () { dict = new Dictionary (); } public XmlDictionary (int capacity) { dict = new Dictionary (capacity); } // for static empty. private XmlDictionary (bool isReadOnly) : this () { this.isReadOnly = isReadOnly; } public virtual XmlDictionaryString Add (string value) { if (isReadOnly) throw new InvalidOperationException (); throw new NotImplementedException (); } public bool TryLookup (int key, out XmlDictionaryString result) { throw new NotImplementedException (); } public bool TryLookup (string value, out XmlDictionaryString result) { throw new NotImplementedException (); } public bool TryLookup (XmlDictionaryString value, out XmlDictionaryString result) { throw new NotImplementedException (); } } }