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

            foreach (StackHashProductLocaleSummary localeSummary in this)
            {
                // Find matching locale in other.
                StackHashProductLocaleSummary matchingLocaleSummary = other.FindLocale(localeSummary.Lcid);
                if (matchingLocaleSummary == null)
                {
                    return(-1);
                }

                if (localeSummary.CompareTo(matchingLocaleSummary) != 0)
                {
                    return(-1);
                }
            }

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