Example #1
0
        }         // OverlapsWith

        // ----------------------------------------------------------------------
        public virtual PeriodRelation GetRelation(ITimePeriod test)
        {
            if (test == null)
            {
                throw new ArgumentNullException("test");
            }
            return(TimePeriodCalc.GetRelation(this, test));
        }         // GetRelation
Example #2
0
        }         // GetIntersection

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

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

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

        // ----------------------------------------------------------------------
        public virtual bool HasInside(DateTime test)
        {
            return(TimePeriodCalc.HasInside(this, test));
        }         // HasInside