コード例 #1
0
        public InfoByDate <ICollection <CardWithAmount> > GetLastCollectionInMemory(RawDeckConverter converter)
        {
            InfoByDate <ICollection <CardWithAmount> > lastCollectionInMemory = null;
            var info = GetLastCollection();

            //if (lastCollectionInMemory == null || lastCollectionInMemory.DateTime == default(DateTime))
            {
                //var info = GetLastCollection();
                lastCollectionInMemory = new InfoByDate <ICollection <CardWithAmount> >(info.DateTime, converter.LoadCollection(info.Info));
            }

            return(lastCollectionInMemory);
        }
コード例 #2
0
 public void AddData(InfoByDate <T> newData)
 {
     lock (lockData)
         data.Add(newData);
 }