public cSequenceSetRange(uint pFrom, uint pTo) { if (pTo <= pFrom) { throw new ArgumentOutOfRangeException(nameof(pTo)); } From = new cSequenceSetNumber(pFrom); To = new cSequenceSetNumber(pTo); }
public override int CompareTo(cSequenceSetRangePart pOther) { if (pOther == Asterisk) { return(-1); } if (!(pOther is cSequenceSetNumber lOther)) { throw new ArgumentOutOfRangeException(nameof(pOther)); } return(Number.CompareTo(lOther.Number)); }
public override int CompareTo(cSequenceSetRangePart pOther) { if (pOther == null) { throw new ArgumentOutOfRangeException(nameof(pOther)); } if (pOther == Asterisk) { return(0); } return(1); }
public cSequenceSetRange(cSequenceSetRangePart pLeft, cSequenceSetRangePart pRight) { if (pLeft == null) { throw new ArgumentNullException(nameof(pLeft)); } if (pRight == null) { throw new ArgumentNullException(nameof(pRight)); } if (pLeft.CompareTo(pRight) == 1) { From = pRight; To = pLeft; } else { From = pLeft; To = pRight; } }
public abstract int CompareTo(cSequenceSetRangePart pOther);