public StatList <KeyType, ValueType> Union(StatList <KeyType, ValueType> other) { StatList <KeyType, ValueType> union = new StatList <KeyType, ValueType>(this); foreach (ListItemStats <KeyType, ValueType> item in other.AllItems) { union.Add(item.Key, item.Value); } return(union); }