public void ReadXml(XmlReader reader) { while (reader.LocalName == "value") { FoxStringLookupLiteral key = new FoxStringLookupLiteral(); T value = new T(); key.Literal = reader.GetAttribute("key"); value.ReadXml(reader); _map.Add(key, value); } }
public void Read(Stream input, short valueCount) { for (int i = 0; i < valueCount; i++) { FoxHash hash = FoxHash.ReadFoxHash(input); FoxStringLookupLiteral key = new FoxStringLookupLiteral { Hash = hash }; T value = new T(); value.Read(input); input.AlignRead(16); _map.Add(key, value); } }