OverlapsWith() public static method

두 기간이 겹치는 구간이 있는지 파악합니다.
public static OverlapsWith ( this period, ITimePeriod target ) : bool
period this
target ITimePeriod
return bool
 /// <summary>
 /// 지정한 기간이 현 기간과 겹치는 부분이 있는지 검사합니다.
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public virtual bool OverlapsWith(ITimePeriod other)
 {
     return(TimeTool.OverlapsWith(this, other));
 }
Example #2
0
 /// <summary>
 /// 지정한 기간이 현 기간과 겹치는 부분이 있는지 검사합니다.
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public virtual bool OverlapsWith(ITimePeriod other)
 {
     other.ShouldNotBeNull("other");
     return(TimeTool.OverlapsWith(this, other));
 }