AreNotEqual Method
Definition
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
xTThe first object to compare.
yTThe second object to compare.
Returns
- bool
trueifxare different fromy; otherwisefalse.
Type Parameters
TThe 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
xTThe first object to compare.
yTThe second object to compare.
comparerIEqualityComparer<T>The IEqualityComparer<T> implementation to use when comparing
xandy.
Returns
- bool
trueifxare different fromy; otherwisefalse.
Type Parameters
TThe type of objects to compare.
Exceptions
- ArgumentNullException
compareris null.