Files
mono/mcs/class/System.ServiceModel/System.Xml/XmlDictionary.cs
T
Atsushi Eno fe9bd14c8f 2005-09-22 Atsushi Enomoto <[email protected]>
new files for new xmlserializer.


svn path=/trunk/mcs/; revision=50510
2005-09-22 16:44:47 +00:00

59 lines
1.2 KiB
C#

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 ();
}
}
}