} // GetRelation

        // ----------------------------------------------------------------------
        public virtual int CompareTo(ITimePeriod other, ITimePeriodComparer comparer)
        {
            if (other == null)
            {
                throw new ArgumentNullException("other");
            }
            if (comparer == null)
            {
                throw new ArgumentNullException("comparer");
            }
            return(comparer.Compare(this, other));
        } // CompareTo
Beispiel #2
0
        } // GetRelation

        // ----------------------------------------------------------------------
        public virtual int CompareTo(ITimePeriod other, ITimePeriodComparer comparer)
        {
            CommonMethods.checkNull(other, "other @ CompareTo");
            CommonMethods.checkNull(comparer, "comparer @ CompareTo");
            return(comparer.Compare(this, other));
        } // CompareTo