Craig's Utility Library
4.0 Beta
|
Simple IComparable class More...
Public Member Functions | |
SimpleComparer (Func< T, T, int > comparisonFunction) | |
Initializes a new instance of the SimpleComparer<T> class. More... | |
int | Compare (T x, T y) |
Compares the two objects More... | |
Properties | |
Func< T, T, int > | ComparisonFunction [get, set] |
Gets or sets the comparison function. More... | |
Simple IComparable class
T | Data type |
T | : | IComparable |
Definition at line 31 of file SimpleComparer.cs.
Utilities.DataTypes.Comparison.SimpleComparer< T >.SimpleComparer | ( | Func< T, T, int > | comparisonFunction | ) |
Initializes a new instance of the SimpleComparer<T> class.
comparisonFunction | The comparison function. |
Definition at line 37 of file SimpleComparer.cs.
int Utilities.DataTypes.Comparison.SimpleComparer< T >.Compare | ( | T | x, |
T | y | ||
) |
Compares the two objects
x | Object 1 |
y | Object 2 |
Definition at line 54 of file SimpleComparer.cs.
|
getsetprotected |
Gets or sets the comparison function.
The comparison function.
Definition at line 46 of file SimpleComparer.cs.