Guard.IsNotEqualTo Method

Definition

Overloads

IsNotEqualTo(UIntPtr, UIntPtr, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(UInt64, UInt64, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(UInt32, UInt32, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(UInt16, UInt16, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(SByte, SByte, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(IntPtr, IntPtr, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Single, Single, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Int32, Int32, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Int16, Int16, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Double, Double, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Decimal, Decimal, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Char, Char, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Byte, Byte, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(Int64, Int64, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo<T>(T, T, String)

Asserts that the input value must be not equal to a specified value.

IsNotEqualTo(UIntPtr, UIntPtr, String)

Asserts that the input value must be not equal to a specified value.

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

Parameters

value
UIntPtr

nuint

unativeint

The input nuint value to test.

target
UIntPtr

nuint

unativeint

The target nuint value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to

IsNotEqualTo(UInt64, UInt64, String)

Asserts that the input value must be not equal to a specified value.

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

Parameters

value
UInt64

The input UInt64 value to test.

target
UInt64

The target UInt64 value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to

IsNotEqualTo(UInt32, UInt32, String)

Asserts that the input value must be not equal to a specified value.

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

Parameters

value
UInt32

The input UInt32 value to test.

target
UInt32

The target UInt32 value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to

IsNotEqualTo(UInt16, UInt16, String)

Asserts that the input value must be not equal to a specified value.

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

Parameters

value
UInt16

The input UInt16 value to test.

target
UInt16

The target UInt16 value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to

IsNotEqualTo(SByte, SByte, String)

Asserts that the input value must be not equal to a specified value.

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

Parameters

value
SByte

The input SByte value to test.

target
SByte

The target SByte value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to

IsNotEqualTo(IntPtr, IntPtr, String)

Asserts that the input value must be not equal to a specified value.

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

Parameters

value
IntPtr

nint

nativeint

The input nint value to test.

target
IntPtr

nint

nativeint

The target nint value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to

IsNotEqualTo(Single, Single, String)

Asserts that the input value must be not equal to a specified value.

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

Parameters

value
Single

The input Single value to test.

target
Single

The target Single value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to

IsNotEqualTo(Int32, Int32, String)

Asserts that the input value must be not equal to a specified value.

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

Parameters

value
Int32

The input Int32 value to test.

target
Int32

The target Int32 value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to

IsNotEqualTo(Int16, Int16, String)

Asserts that the input value must be not equal to a specified value.

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

Parameters

value
Int16

The input Int16 value to test.

target
Int16

The target Int16 value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to

IsNotEqualTo(Double, Double, String)

Asserts that the input value must be not equal to a specified value.

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

Parameters

value
Double

The input Double value to test.

target
Double

The target Double value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to

IsNotEqualTo(Decimal, Decimal, String)

Asserts that the input value must be not equal to a specified value.

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

Parameters

value
Decimal

The input Decimal value to test.

target
Decimal

The target Decimal value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to

IsNotEqualTo(Char, Char, String)

Asserts that the input value must be not equal to a specified value.

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

Parameters

value
Char

The input Char value to test.

target
Char

The target Char value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to

IsNotEqualTo(Byte, Byte, String)

Asserts that the input value must be not equal to a specified value.

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

Parameters

value
Byte

The input Byte value to test.

target
Byte

The target Byte value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to

IsNotEqualTo(Int64, Int64, String)

Asserts that the input value must be not equal to a specified value.

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

Parameters

value
Int64

The input Int64 value to test.

target
Int64

The target Int64 value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to

IsNotEqualTo<T>(T, T, String)

Asserts that the input value must be not equal to a specified value.

public static void IsNotEqualTo<T> (T value, T target, string name) where T : IEquatable<T>;
static member IsNotEqualTo : 'T * 'T * string -> unit (requires 'T :> IEquatable<'T>)
Public Shared Sub IsNotEqualTo(Of T As IEquatable(Of T)) (value As T, target As T, name As String)

Type Parameters

T

The type of input values to compare.

Parameters

value
T

The input T value to test.

target
T

The target T value to test for.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if value is == target.

Remarks

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

Applies to