Example #1
0
        public int CompareTo(StackHashProductOperatingSystemSummaryCollection other)
        {
            if (other == null)
            {
                return(-1);
            }
            if (other.Count != this.Count)
            {
                return(-1);
            }

            foreach (StackHashProductOperatingSystemSummary operatingSystemSummary in this)
            {
                // Find matching in other.
                StackHashProductOperatingSystemSummary matchingSummary =
                    other.FindOperatingSystem(operatingSystemSummary.OperatingSystemName, operatingSystemSummary.OperatingSystemVersion);
                if (matchingSummary == null)
                {
                    return(-1);
                }

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

            return(0);
        }
Example #2
0
 public StackHashProductSummary()
 {
     m_LocaleSummaryCollection          = new StackHashProductLocaleSummaryCollection();
     m_OperatingSystemSummaryCollection = new StackHashProductOperatingSystemSummaryCollection();
     m_HitDateSummaryCollection         = new StackHashProductHitDateSummaryCollection();
 }