/// <summary> /// Merges the other dictionary to this dictionary. /// </summary> public void Merge(CardDistribution other) { foreach (KeyValuePair <CardSet, int> kvp in other.HandCounters) { AddHand(kvp.Key, kvp.Value); } }
public CardDistribution(CardDistribution other) { HandCounters = new Dictionary <CardSet, int>(other.HandCounters); TotalCounter = other.TotalCounter; }