Comparer

Description

The Comparer class implements an object that is used to compare elements of different types.

Comment

Static properties of this class can be used to get one of two available objects to compare data of specific type. To compare objects, use the Compare method. Depending on the selected comparing object type, various implementations of the Compare method are used.

Static properties inherited from IComparerClass

   Property name Brief description
DateTimeComparer The DateTimeComparer property returns an object to compare elements of the DateTime type.
DoubleComparer The DoubleComparer property returns an object to compare elements of real type.
FreeTextComparer The FreeTextComparer property returns an object for free text comparison.
IntegerComparer The IntegerComparer method returns an object for comparison of elements of integer type.
StringCaseInsensitiveComparer The StringCaseInsensitiveComparer property returns an object for comparing elements of string type without taking into account case.
StringComparer The StringComparer property returns an object for comparing elements of string type.

Class object methods inherited from IComparer

  Method name Brief description
Compare The Compare method compares X and Y.

See also:

Collections Assembly Classes