ComparisonBasedComparerT Class |
Namespace: SD.Tools.Algorithmia.UtilityClasses
The ComparisonBasedComparerT type exposes the following members.
Name | Description | |
---|---|---|
![]() | ComparisonBasedComparerT |
Initializes a new instance of the ComparisonBasedComparerT class.
|
Name | Description | |
---|---|---|
![]() | FlipCompareResult |
Gets or sets the flag which, if set to true, makes the Compare method flip its result: -1 becomes 1 and 1 becomes -1. This flag can be used to
use the comparer in descending sorted lists.
|
Name | Description | |
---|---|---|
![]() | Compare |
Compares the two passed in elements using the set compareFunc.
(Overrides ComparerTCompare(T, T).) |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() ![]() | IComparerCompare | Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. (Inherited from ComparerT.) |