public object this[string key]
{
get
{
byte[] bytes = this.tree[key];
System.IO.Stream bstream = new System.IO.MemoryStream(bytes);
object result = formatter.Deserialize(bstream);
return result;
}
set
{
System.IO.MemoryStream bstream = new System.IO.MemoryStream();
formatter.Serialize(bstream, value);
byte[] bytes = bstream.ToArray();
this.tree[key] = bytes;
}
}