Table of Contents

AreNotEqual Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Condition.cs

AreNotEqual<T>(T, T)

Determines whether the two specified x and y are different by using the default equality operator from T.

public static bool AreNotEqual<T>(T x, T y)

Parameters

x T

The first object to compare.

y T

The second object to compare.

Returns

bool

true if x are different from y; otherwise false.

Type Parameters

T

The type of objects to compare.

AreNotEqual<T>(T, T, IEqualityComparer<T>)

Determines whether the two specified x and y are different by using the equality operator.

public static bool AreNotEqual<T>(T x, T y, IEqualityComparer<T> comparer)

Parameters

x T

The first object to compare.

y T

The second object to compare.

comparer IEqualityComparer<T>

The IEqualityComparer<T> implementation to use when comparing x and y.

Returns

bool

true if x are different from y; otherwise false.

Type Parameters

T

The type of objects to compare.

Exceptions

ArgumentNullException

comparer is null.