Click or drag to resize

Comparer Methods

The Comparer type exposes the following members.

Methods
  NameDescription
Public methodStatic memberEquals(Object, Object)
Determines whether a is equal to b

Checks reference equality first with ReferenceEquals(Object, Object). Then it checks all known types with the == operator, then with reflection on 'op_Equality' and as last resort uses Equals(Object, Object) to determine equality

Public methodStatic memberEqualsT, TValue(T, T, FuncT, TValue)
Determines whether a is equal to b
Public methodStatic memberGreaterThan
Determines whether a is greater than b

Checks reference equality first with ReferenceEquals(Object, Object). Then it checks all known types with the > operator, then with reflection on 'op_GreaterThan'

Public methodStatic memberGreaterThanOrEqual
Determines whether a is greater than or equal to b

Checks reference equality first with ReferenceEquals(Object, Object). Then it checks all known types with the >= operator, then with reflection on 'op_GreaterThanOrEqual'

Public methodStatic memberLessThan
Determines whether a is less than b

Checks reference equality first with ReferenceEquals(Object, Object). Then it checks all known types with the < operator, then with reflection on 'op_LessThan'

Public methodStatic memberLessThanOrEqual
Determines whether a is less than or equal to b

Checks reference equality first with ReferenceEquals(Object, Object). Then it checks all known types with the <= operator, then with reflection on 'op_LessThanOrEqual'

Public methodStatic memberUnEquals(Object, Object)
Determines whether a is unequal to b

Checks reference equality first with ReferenceEquals(Object, Object). Then it checks all known types with the != operator, then with reflection on 'op_Inequality' and as last resort uses Equals(Object, Object) to determine unequality

Public methodStatic memberUnEqualsT, TValue(T, T, FuncT, TValue)
Determines whether a is unequal to b
Top
See Also