| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- 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<string, XmlDictionaryString> dict;
- public XmlDictionary ()
- {
- dict = new Dictionary<string, XmlDictionaryString> ();
- }
- public XmlDictionary (int capacity)
- {
- dict = new Dictionary<string, XmlDictionaryString> (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 ();
- }
- }
- }
|