} // GetIntersection

        // ----------------------------------------------------------------------
        public virtual bool OverlapsWith(ITimePeriod test)
        {
            if (test == null)
            {
                throw new ArgumentNullException("test");
            }
            return(TimePeriodCalc.OverlapsWith(this, test));
        } // OverlapsWith
        } // OverlapsWith

        // ----------------------------------------------------------------------
        public virtual List <PeriodRelation> GetRelation(ITimePeriod test)
        {
            if (test == null)
            {
                throw new ArgumentNullException("test");
            }
            return(TimePeriodCalc.GetRelation(this, test));
        } // GetRelation
        } // HasInside

        // ----------------------------------------------------------------------
        public virtual bool HasInside(ITimePeriod test)
        {
            if (test == null)
            {
                throw new ArgumentNullException("test");
            }
            return(TimePeriodCalc.HasInside(this, test));
        } // HasInside
        } // ShrinkTo

        // ----------------------------------------------------------------------
        public virtual bool IntersectsWith(ITimePeriod test)
        {
            if (test == null)
            {
                throw new ArgumentNullException("test");
            }
            return(TimePeriodCalc.IntersectsWith(this, test));
        } // IntersectsWith
        } // IsSamePeriod

        // ----------------------------------------------------------------------
        public virtual bool HasInside(DateTime test)
        {
            return(TimePeriodCalc.HasInside(this, test));
        } // HasInside
Example #6
0
        } // OverlapsWith

        // ----------------------------------------------------------------------
        public virtual List <PeriodRelation> GetRelation(ITimePeriod test)
        {
            CommonMethods.checkNull(test, "test @ GetRelation");
            return(TimePeriodCalc.GetRelation(this, test));
        } // GetRelation
Example #7
0
        } // GetIntersection

        // ----------------------------------------------------------------------
        public virtual bool OverlapsWith(ITimePeriod test)
        {
            CommonMethods.checkNull(test, "test @ OverlapsWith");
            return(TimePeriodCalc.OverlapsWith(this, test));
        } // OverlapsWith
Example #8
0
        } // HasInside

        // ----------------------------------------------------------------------
        public virtual bool IntersectsWith(ITimePeriod test)
        {
            CommonMethods.checkNull(test, "test @ IntersectsWith");
            return(TimePeriodCalc.IntersectsWith(this, test));
        } // IntersectsWith
Example #9
0
        } // HasInside

        // ----------------------------------------------------------------------
        public virtual bool HasInside(ITimePeriod test)
        {
            CommonMethods.checkNull(test, "test @ HasInside");
            return(TimePeriodCalc.HasInside(this, test));
        } // HasInside