Guard.IsGreaterThan Method

Definition

Overloads

IsGreaterThan(Byte, Byte, String)

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

IsGreaterThan(UIntPtr, UIntPtr, String)

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

IsGreaterThan(UInt64, UInt64, String)

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

IsGreaterThan(UInt32, UInt32, String)

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

IsGreaterThan(Single, Single, String)

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

IsGreaterThan(SByte, SByte, String)

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

IsGreaterThan(IntPtr, IntPtr, String)

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

IsGreaterThan(UInt16, UInt16, String)

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

IsGreaterThan(Int32, Int32, String)

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

IsGreaterThan(Int16, Int16, String)

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

IsGreaterThan(Double, Double, String)

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

IsGreaterThan(Decimal, Decimal, String)

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

IsGreaterThan(Char, Char, String)

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

IsGreaterThan(Int64, Int64, String)

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

IsGreaterThan<T>(T, T, String)

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

IsGreaterThan(Byte, Byte, String)

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

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

Parameters

value
Byte

The input Byte value to test.

minimum
Byte

The exclusive 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

IsGreaterThan(UIntPtr, UIntPtr, String)

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

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

IsGreaterThan(UInt64, UInt64, String)

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

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

Parameters

value
UInt64

The input UInt64 value to test.

minimum
UInt64

The exclusive 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

IsGreaterThan(UInt32, UInt32, String)

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

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

Parameters

value
UInt32

The input UInt32 value to test.

minimum
UInt32

The exclusive 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

IsGreaterThan(Single, Single, String)

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

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

Parameters

value
Single

The input Single value to test.

minimum
Single

The exclusive 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

IsGreaterThan(SByte, SByte, String)

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

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

Parameters

value
SByte

The input SByte value to test.

minimum
SByte

The exclusive 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

IsGreaterThan(IntPtr, IntPtr, String)

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

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

IsGreaterThan(UInt16, UInt16, String)

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

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

Parameters

value
UInt16

The input UInt16 value to test.

minimum
UInt16

The exclusive 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

IsGreaterThan(Int32, Int32, String)

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

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

Parameters

value
Int32

The input Int32 value to test.

minimum
Int32

The exclusive 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

IsGreaterThan(Int16, Int16, String)

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

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

Parameters

value
Int16

The input Int16 value to test.

minimum
Int16

The exclusive 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

IsGreaterThan(Double, Double, String)

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

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

Parameters

value
Double

The input Double value to test.

minimum
Double

The exclusive 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

IsGreaterThan(Decimal, Decimal, String)

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

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

Parameters

value
Decimal

The input Decimal value to test.

minimum
Decimal

The exclusive 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

IsGreaterThan(Char, Char, String)

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

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

Parameters

value
Char

The input Char value to test.

minimum
Char

The exclusive 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

IsGreaterThan(Int64, Int64, String)

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

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

Parameters

value
Int64

The input Int64 value to test.

minimum
Int64

The exclusive 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

IsGreaterThan<T>(T, T, String)

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

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