Microsoft.Languages.Core.Text.TextRange.ContainsInclusiveEnd C# (CSharp) Method

ContainsInclusiveEnd() public static method

Determines if range contains another range or it contains start point of the other range and their end points are the same.
public static ContainsInclusiveEnd ( ITextRange range, ITextRange other ) : bool
range ITextRange
other ITextRange
return bool
        public static bool ContainsInclusiveEnd(ITextRange range, ITextRange other) {
            return range.Contains(other.Start) && (range.Contains(other.End) || range.End == other.End);
        }