mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
59 lines
1.2 KiB
C#
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 ();
|
|
}
|
|
}
|
|
}
|