示例#1
0
        public void Import(IPersistantSerializer serializer, string data)
        {
            var temp = serializer.Deserialize <List <PersistantListElement <T> > >(data);

            foreach (var ele in temp)
            {
                Add(ele.DataObject);
            }
        }
示例#2
0
 public string Export(IPersistantSerializer serializer)
 {
     return(serializer.Serialize(_localCache));
 }