public override int GetHashCode() { int hash = 1; if (Time.Length != 0) { hash ^= Time.GetHashCode(); } if (AmountSold != 0) { hash ^= AmountSold.GetHashCode(); } if (MedianPrice != 0D) { hash ^= MedianPrice.GetHashCode(); } return(hash); }
public void AddAmountSold(EventType eventType, int sold, int totalTickets) { AmountSold.Add(new KeyValuePair <string, int[]>(eventType.ToString(), new int[] { sold, totalTickets })); }