public BaseStatData(BaseStatData <T> other) { if (other == null) { return; } this._stat = new Dictionary <T, int>(other._stat); }
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; } }