static internal SessionDictionary Deserialize(BinaryReader reader) { SessionDictionary d = new SessionDictionary(); int count; int nullKey; String key; Object value; int i; count = reader.ReadInt32(); nullKey = reader.ReadInt32(); for (i = 0; i < count; i++) { if (i == nullKey) { key = null; } else { key = reader.ReadString(); } value = AltSerialization.ReadValueFromStream(reader); d.BaseSet(key, value); } d._dirty = false; return(d); }