Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 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);
     }
 }