Here are the examples of the csharp api class Code.ConvertingForToLinq.Span.IsOverlapOf(Code.ConvertingForToLinq.Span) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
View licensepublic List<Span<T>> RemoveInterval(Span<T> interval) { if (!IsOverlapOf(interval)) throw new ArgumentException("Cannot remove interval as there is no overlap"); var result = new List<Span<T>>(); if (Compare.LessOrEquals(From, interval.From)) result.Add(new Span<T>(From, interval.From)); if (Compare.Greater(Upto, interval.Upto)) result.Add(new Span<T>(interval.Upto, Upto)); return result; }