示例#1
0
 public cSequenceSetRange(uint pFrom, uint pTo)
 {
     if (pTo <= pFrom)
     {
         throw new ArgumentOutOfRangeException(nameof(pTo));
     }
     From = new cSequenceSetNumber(pFrom);
     To   = new cSequenceSetNumber(pTo);
 }
示例#2
0
 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));
 }
示例#3
0
 public override int CompareTo(cSequenceSetRangePart pOther)
 {
     if (pOther == null)
     {
         throw new ArgumentOutOfRangeException(nameof(pOther));
     }
     if (pOther == Asterisk)
     {
         return(0);
     }
     return(1);
 }
示例#4
0
 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;
     }
 }
示例#5
0
 public abstract int CompareTo(cSequenceSetRangePart pOther);