示例#1
0
 public BaseStatData(BaseStatData <T> other)
 {
     if (other == null)
     {
         return;
     }
     this._stat = new Dictionary <T, int>(other._stat);
 }
示例#2
0
 public virtual void Add(BaseStatData <T> other)
 {
     if (other == null)
     {
         return;
     }
     foreach (KeyValuePair <T, int> keyValuePair in other._stat)
     {
         Dictionary <T, int> stat;
         Dictionary <T, int> dictionary = stat = this._stat;
         T   key2;
         T   key = key2 = keyValuePair.Key;
         int num = stat[key2];
         dictionary[key] = num + keyValuePair.Value;
     }
 }