Guard.IsNotBetweenOrEqualTo Method

Definition

Overloads

IsNotBetweenOrEqualTo(SByte, SByte, SByte, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(UInt64, UInt64, UInt64, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(UInt32, UInt32, UInt32, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(UInt16, UInt16, UInt16, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Single, Single, Single, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(UIntPtr, UIntPtr, UIntPtr, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(IntPtr, IntPtr, IntPtr, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Int32, Int32, Int32, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Int16, Int16, Int16, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Double, Double, Double, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Decimal, Decimal, Decimal, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Char, Char, Char, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Byte, Byte, Byte, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(Int64, Int64, Int64, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo<T>(T, T, T, String)

Asserts that the input value must not be in a given interval.

IsNotBetweenOrEqualTo(SByte, SByte, SByte, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo (sbyte value, sbyte minimum, sbyte maximum, string name);
static member IsNotBetweenOrEqualTo : sbyte * sbyte * sbyte * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As SByte, minimum As SByte, maximum As SByte, name As String)

Parameters

value
SByte

The input SByte value to test.

minimum
SByte

The inclusive minimum SByte value that is accepted.

maximum
SByte

The inclusive maximum SByte value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsNotBetweenOrEqualTo(UInt64, UInt64, UInt64, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo (ulong value, ulong minimum, ulong maximum, string name);
static member IsNotBetweenOrEqualTo : uint64 * uint64 * uint64 * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As ULong, minimum As ULong, maximum As ULong, name As String)

Parameters

value
UInt64

The input UInt64 value to test.

minimum
UInt64

The inclusive minimum UInt64 value that is accepted.

maximum
UInt64

The inclusive maximum UInt64 value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsNotBetweenOrEqualTo(UInt32, UInt32, UInt32, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo (uint value, uint minimum, uint maximum, string name);
static member IsNotBetweenOrEqualTo : uint32 * uint32 * uint32 * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As UInteger, minimum As UInteger, maximum As UInteger, name As String)

Parameters

value
UInt32

The input UInt32 value to test.

minimum
UInt32

The inclusive minimum UInt32 value that is accepted.

maximum
UInt32

The inclusive maximum UInt32 value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsNotBetweenOrEqualTo(UInt16, UInt16, UInt16, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo (ushort value, ushort minimum, ushort maximum, string name);
static member IsNotBetweenOrEqualTo : uint16 * uint16 * uint16 * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As UShort, minimum As UShort, maximum As UShort, name As String)

Parameters

value
UInt16

The input UInt16 value to test.

minimum
UInt16

The inclusive minimum UInt16 value that is accepted.

maximum
UInt16

The inclusive maximum UInt16 value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsNotBetweenOrEqualTo(Single, Single, Single, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo (float value, float minimum, float maximum, string name);
static member IsNotBetweenOrEqualTo : single * single * single * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Single, minimum As Single, maximum As Single, name As String)

Parameters

value
Single

The input Single value to test.

minimum
Single

The inclusive minimum Single value that is accepted.

maximum
Single

The inclusive maximum Single value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsNotBetweenOrEqualTo(UIntPtr, UIntPtr, UIntPtr, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo (nuint value, nuint minimum, nuint maximum, string name);
static member IsNotBetweenOrEqualTo : unativeint * unativeint * unativeint * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As UIntPtr, minimum As UIntPtr, maximum As UIntPtr, name As String)

Parameters

value
UIntPtr

nuint

unativeint

The input nuint value to test.

minimum
UIntPtr

nuint

unativeint

The inclusive minimum nuint value that is accepted.

maximum
UIntPtr

nuint

unativeint

The inclusive maximum nuint value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsNotBetweenOrEqualTo(IntPtr, IntPtr, IntPtr, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo (nint value, nint minimum, nint maximum, string name);
static member IsNotBetweenOrEqualTo : nativeint * nativeint * nativeint * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As IntPtr, minimum As IntPtr, maximum As IntPtr, name As String)

Parameters

value
IntPtr

nint

nativeint

The input nint value to test.

minimum
IntPtr

nint

nativeint

The inclusive minimum nint value that is accepted.

maximum
IntPtr

nint

nativeint

The inclusive maximum nint value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsNotBetweenOrEqualTo(Int32, Int32, Int32, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo (int value, int minimum, int maximum, string name);
static member IsNotBetweenOrEqualTo : int * int * int * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Integer, minimum As Integer, maximum As Integer, name As String)

Parameters

value
Int32

The input Int32 value to test.

minimum
Int32

The inclusive minimum Int32 value that is accepted.

maximum
Int32

The inclusive maximum Int32 value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsNotBetweenOrEqualTo(Int16, Int16, Int16, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo (short value, short minimum, short maximum, string name);
static member IsNotBetweenOrEqualTo : int16 * int16 * int16 * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Short, minimum As Short, maximum As Short, name As String)

Parameters

value
Int16

The input Int16 value to test.

minimum
Int16

The inclusive minimum Int16 value that is accepted.

maximum
Int16

The inclusive maximum Int16 value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsNotBetweenOrEqualTo(Double, Double, Double, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo (double value, double minimum, double maximum, string name);
static member IsNotBetweenOrEqualTo : double * double * double * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Double, minimum As Double, maximum As Double, name As String)

Parameters

value
Double

The input Double value to test.

minimum
Double

The inclusive minimum Double value that is accepted.

maximum
Double

The inclusive maximum Double value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsNotBetweenOrEqualTo(Decimal, Decimal, Decimal, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo (decimal value, decimal minimum, decimal maximum, string name);
static member IsNotBetweenOrEqualTo : decimal * decimal * decimal * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Decimal, minimum As Decimal, maximum As Decimal, name As String)

Parameters

value
Decimal

The input Decimal value to test.

minimum
Decimal

The inclusive minimum Decimal value that is accepted.

maximum
Decimal

The inclusive maximum Decimal value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsNotBetweenOrEqualTo(Char, Char, Char, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo (char value, char minimum, char maximum, string name);
static member IsNotBetweenOrEqualTo : char * char * char * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Char, minimum As Char, maximum As Char, name As String)

Parameters

value
Char

The input Char value to test.

minimum
Char

The inclusive minimum Char value that is accepted.

maximum
Char

The inclusive maximum Char value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsNotBetweenOrEqualTo(Byte, Byte, Byte, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo (byte value, byte minimum, byte maximum, string name);
static member IsNotBetweenOrEqualTo : byte * byte * byte * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Byte, minimum As Byte, maximum As Byte, name As String)

Parameters

value
Byte

The input Byte value to test.

minimum
Byte

The inclusive minimum Byte value that is accepted.

maximum
Byte

The inclusive maximum Byte value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsNotBetweenOrEqualTo(Int64, Int64, Int64, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo (long value, long minimum, long maximum, string name);
static member IsNotBetweenOrEqualTo : int64 * int64 * int64 * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Long, minimum As Long, maximum As Long, name As String)

Parameters

value
Int64

The input Int64 value to test.

minimum
Int64

The inclusive minimum Int64 value that is accepted.

maximum
Int64

The inclusive maximum Int64 value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsNotBetweenOrEqualTo<T>(T, T, T, String)

Asserts that the input value must not be in a given interval.

public static void IsNotBetweenOrEqualTo<T> (T value, T minimum, T maximum, string name) where T : IComparable<T>;
static member IsNotBetweenOrEqualTo : 'T * 'T * 'T * string -> unit (requires 'T :> IComparable<'T>)
Public Shared Sub IsNotBetweenOrEqualTo(Of T As IComparable(Of T)) (value As T, minimum As T, maximum As T, name As String)

Type Parameters

T

The type of input values to compare.

Parameters

value
T

The input T value to test.

minimum
T

The inclusive minimum T value that is accepted.

maximum
T

The inclusive maximum T value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is >= minimum or <= maximum.

Remarks

This API asserts the equivalent of "value not in [minimum, maximum]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.

Applies to