/// <summary> /// Sets the ending call number of this range. Returns false if b is /// smaller than begin. /// </summary> /// <returns><c>true</c>, if end was set, <c>false</c> otherwise.</returns> public bool SetEnd(CallNumber b) { if (b == null || b.CompareTo(begin) < 0) { return(false); } end = b; return(true); }
/// <summary> /// Sets the beginning call number of this range. Returns false if b is /// larger than end. /// </summary> /// <returns><c>true</c>, if begin was set, <c>false</c> otherwise.</returns> public bool SetBegin(CallNumber b) { if (b == null || b.CompareTo(end) > 0) { return(false); } begin = b; return(true); }