IComparer

IComparer


A standard interface used to implement custom comparers.


Remarks


Use this interface to create a comparer that can be used in searching and sorting functions in the collections. Generally, custom comparers are used for special-case values to compare, such as user-defined types. In order to not have to write logic to compare all types of values, the method could delegate general cases to the default comparer, and compare only the specialized values.

See Also

Project VBCorLib Overview

Public:

Methods:

NameDescription
 CompareCompares two elements and returns their relationship.