public bool Equals(GreaterThanElement other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.Begin, Begin)); }
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); }