Precondition
Public / Methods
NotPowerOfTwo
2 overloads
Is the given number not a power of two?
Is the given number not a power of two?
NotPowerOfTwoPlusOne
2 overloads
Is the given number not a power of two plus one?
Is the given number not a power of two plus one?
NotWithinInterval
4 overloads
Is the given value outside of the specified interval?
Is the given value outside of the specified interval?
Is the given value outside of the specified interval?
Is the given value outside of the specified interval?
NotWithinRange
2 overloads
Is the specified index range fully inside the element sequence of the given value?
This precondition check is a shortcut for the following aggregated checks:
-
value in is not
null
. -
first in is within [0..N], where N is element count of value in.
-
count in is within [0..N-first].
Is the specified index range fully inside the element sequence of the given value?
This precondition check is a shortcut for the following aggregated checks:
-
value in is not
null
. -
first in is within [0..N], where N is element count of value in.
-
count in is within [0..N-first].
NotWithinRangeAuto
2 overloads
Is the specified index range fully inside the element sequence of the given value?
This precondition check is a shortcut for the following aggregated checks:
-
value in is not
null
. -
first in is within [0..N], where N is element count of value in.
-
count in is within [-1..N-first], where
-1
means all elements after first in.
Is the specified index range fully inside the element sequence of the given value?
This precondition check is a shortcut for the following aggregated checks:
-
value in is not
null
. -
first in is within [0..N], where N is element count of value in.
-
count in is within [-1..N-first], where
-1
means all elements after first in.
NotWithinRangeClosed
2 overloads
Is the specified index fully inside the element sequence of the given value?
This precondition check is a shortcut for the following aggregated checks:
-
value in is not
null
. -
index in is within [0..N], where N is element count of value in.
Is the specified index fully inside the element sequence of the given value?
This precondition check is a shortcut for the following aggregated checks:
-
value in is not
null
. -
index in is within [0..N], where N is element count of value in.
NotWithinRangeOpen
2 overloads
Is the specified index fully inside the element sequence of the given value?
This precondition check is a shortcut for the following aggregated checks:
-
value in is not
null
. -
index in is within [0..N-1], where N is element count of value in.
Is the specified index fully inside the element sequence of the given value?
This precondition check is a shortcut for the following aggregated checks:
-
value in is not
null
. -
index in is within [0..N-1], where N is element count of value in.