예제 #1
0
        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);
        }
예제 #2
0
 public void AddAmountSold(EventType eventType, int sold, int totalTickets)
 {
     AmountSold.Add(new KeyValuePair <string, int[]>(eventType.ToString(), new int[] { sold, totalTickets }));
 }