GetIntersectionRange() public static method

두 기간의 공통되는 기간을 반환한다. (교집합)
public static GetIntersectionRange ( this period, ITimePeriod target ) : TimeRange
period this
target ITimePeriod
return TimeRange
Exemplo n.º 1
0
 /// <summary>
 /// 두 기간의 겹치는 기간을 반환합니다.
 /// </summary>
 /// <param name="other">대상 기간</param>
 /// <returns>겹치는 기간</returns>
 public ITimePeriod GetIntersection(ITimePeriod other)
 {
     return(TimeTool.GetIntersectionRange(this, other));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 두 기간의 겹치는 기간을 반환합니다.
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public new ITimeRange GetIntersection(ITimePeriod other)
 {
     other.ShouldNotBeNull("other");
     return(TimeTool.GetIntersectionRange(this, other));
 }