コード例 #1
0
ファイル: TimeRange.cs プロジェクト: netintellect/EF7App
        }         // OverlapsWith

        // ----------------------------------------------------------------------
        public virtual PeriodRelation GetRelation(ITimePeriod test)
        {
            if (test == null)
            {
                throw new ArgumentNullException("test");
            }
            return(TimePeriodCalc.GetRelation(this, test));
        }         // GetRelation
コード例 #2
0
ファイル: TimeRange.cs プロジェクト: netintellect/EF7App
        }         // GetIntersection

        // ----------------------------------------------------------------------
        public virtual bool OverlapsWith(ITimePeriod test)
        {
            if (test == null)
            {
                throw new ArgumentNullException("test");
            }
            return(TimePeriodCalc.OverlapsWith(this, test));
        }         // OverlapsWith
コード例 #3
0
ファイル: TimeRange.cs プロジェクト: netintellect/EF7App
        }         // HasInside

        // ----------------------------------------------------------------------
        public virtual bool HasInside(ITimePeriod test)
        {
            if (test == null)
            {
                throw new ArgumentNullException("test");
            }
            return(TimePeriodCalc.HasInside(this, test));
        }         // HasInside
コード例 #4
0
ファイル: TimeRange.cs プロジェクト: netintellect/EF7App
        }         // ShrinkTo

        // ----------------------------------------------------------------------
        public virtual bool IntersectsWith(ITimePeriod test)
        {
            if (test == null)
            {
                throw new ArgumentNullException("test");
            }
            return(TimePeriodCalc.IntersectsWith(this, test));
        }         // IntersectsWith
コード例 #5
0
ファイル: TimeRange.cs プロジェクト: netintellect/EF7App
        }         // IsSamePeriod

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