public bool Equals(LessThanElement other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.End, End)); }
public RangeElement(string begin, string end) { if (begin.CompareTo(end) > 0) { string temp = begin; begin = end; end = temp; } Begin = new GreaterThanElement(begin); End = new LessThanElement(end); }