Guard.IsGreaterThanOrEqualTo Method

Definition

Overloads

IsGreaterThanOrEqualTo(SByte, SByte, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(UIntPtr, UIntPtr, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(UInt64, UInt64, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(UInt32, UInt32, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(UInt16, UInt16, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(IntPtr, IntPtr, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Single, Single, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Int32, Int32, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Byte, Byte, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Char, Char, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Decimal, Decimal, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Int64, Int64, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Double, Double, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(Int16, Int16, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo<T>(T, T, String)

Asserts that the input value must be greater than or equal to a specified value.

IsGreaterThanOrEqualTo(SByte, SByte, String)

Asserts that the input value must be greater than or equal to a specified value.

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

Parameters

value
SByte

The input SByte value to test.

minimum
SByte

The inclusive minimum SByte value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsGreaterThanOrEqualTo(UIntPtr, UIntPtr, String)

Asserts that the input value must be greater than or equal to a specified value.

public static void IsGreaterThanOrEqualTo (nuint value, nuint minimum, string name);
static member IsGreaterThanOrEqualTo : unativeint * unativeint * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As UIntPtr, minimum 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.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsGreaterThanOrEqualTo(UInt64, UInt64, String)

Asserts that the input value must be greater than or equal to a specified value.

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

Parameters

value
UInt64

The input UInt64 value to test.

minimum
UInt64

The inclusive minimum UInt64 value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsGreaterThanOrEqualTo(UInt32, UInt32, String)

Asserts that the input value must be greater than or equal to a specified value.

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

Parameters

value
UInt32

The input UInt32 value to test.

minimum
UInt32

The inclusive minimum UInt32 value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsGreaterThanOrEqualTo(UInt16, UInt16, String)

Asserts that the input value must be greater than or equal to a specified value.

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

Parameters

value
UInt16

The input UInt16 value to test.

minimum
UInt16

The inclusive minimum UInt16 value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsGreaterThanOrEqualTo(IntPtr, IntPtr, String)

Asserts that the input value must be greater than or equal to a specified value.

public static void IsGreaterThanOrEqualTo (nint value, nint minimum, string name);
static member IsGreaterThanOrEqualTo : nativeint * nativeint * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As IntPtr, minimum 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.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsGreaterThanOrEqualTo(Single, Single, String)

Asserts that the input value must be greater than or equal to a specified value.

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

Parameters

value
Single

The input Single value to test.

minimum
Single

The inclusive minimum Single value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsGreaterThanOrEqualTo(Int32, Int32, String)

Asserts that the input value must be greater than or equal to a specified value.

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

Parameters

value
Int32

The input Int32 value to test.

minimum
Int32

The inclusive minimum Int32 value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsGreaterThanOrEqualTo(Byte, Byte, String)

Asserts that the input value must be greater than or equal to a specified value.

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

Parameters

value
Byte

The input Byte value to test.

minimum
Byte

The inclusive minimum Byte value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsGreaterThanOrEqualTo(Char, Char, String)

Asserts that the input value must be greater than or equal to a specified value.

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

Parameters

value
Char

The input Char value to test.

minimum
Char

The inclusive minimum Char value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsGreaterThanOrEqualTo(Decimal, Decimal, String)

Asserts that the input value must be greater than or equal to a specified value.

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

Parameters

value
Decimal

The input Decimal value to test.

minimum
Decimal

The inclusive minimum Decimal value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsGreaterThanOrEqualTo(Int64, Int64, String)

Asserts that the input value must be greater than or equal to a specified value.

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

Parameters

value
Int64

The input Int64 value to test.

minimum
Int64

The inclusive minimum Int64 value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsGreaterThanOrEqualTo(Double, Double, String)

Asserts that the input value must be greater than or equal to a specified value.

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

Parameters

value
Double

The input Double value to test.

minimum
Double

The inclusive minimum Double value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsGreaterThanOrEqualTo(Int16, Int16, String)

Asserts that the input value must be greater than or equal to a specified value.

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

Parameters

value
Int16

The input Int16 value to test.

minimum
Int16

The inclusive minimum Int16 value that is accepted.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to

IsGreaterThanOrEqualTo<T>(T, T, String)

Asserts that the input value must be greater than or equal to a specified value.

public static void IsGreaterThanOrEqualTo<T> (T value, T minimum, string name) where T : IComparable<T>;
static member IsGreaterThanOrEqualTo : 'T * 'T * string -> unit (requires 'T :> IComparable<'T>)
Public Shared Sub IsGreaterThanOrEqualTo(Of T As IComparable(Of T)) (value As T, minimum 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.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is < minimum.

Remarks

The method is generic to avoid boxing the parameters, if they are value types.

Applies to