示例#1
0
 private void Store(Stream s, Dictionary <string, ICacheItem> table)
 {
     UtilityMethods.WriteInt32(s, table.Count);
     foreach (KeyValuePair <string, ICacheItem> entry in table)
     {
         UtilityMethods.WriteString(s, (string)entry.Key);
         persister.Write(s, (ICacheItem)entry.Value);
     }
 }