Exemplo n.º 1
0
        public int CompareTo(StackHashProductHitDateSummaryCollection other)
        {
            if (other == null)
            {
                return(-1);
            }
            if (other.Count != this.Count)
            {
                return(-1);
            }

            foreach (StackHashProductHitDateSummary hitDateSummary in this)
            {
                // Find matching in other.
                StackHashProductHitDateSummary matchingSummary = other.FindHitDate(hitDateSummary.HitDate);
                if (matchingSummary == null)
                {
                    return(-1);
                }

                if (hitDateSummary.CompareTo(matchingSummary) != 0)
                {
                    return(-1);
                }
            }

            return(0);
        }
Exemplo n.º 2
0
 public StackHashProductSummary()
 {
     m_LocaleSummaryCollection          = new StackHashProductLocaleSummaryCollection();
     m_OperatingSystemSummaryCollection = new StackHashProductOperatingSystemSummaryCollection();
     m_HitDateSummaryCollection         = new StackHashProductHitDateSummaryCollection();
 }