Code.ConvertingForToLinq.Compare.LessOrEquals(T, T)

Here are the examples of the csharp api class Code.ConvertingForToLinq.Compare.LessOrEquals(T, T) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: CodeQualityAndReadability
Source File: Span.cs
View license
public 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;
        }