Click or drag to resize

InvertedRawComparerT Class

Comparer that inverts the results of the default raw comparer.
Inheritance Hierarchy
SystemObject
  Ookii.Jumbo.IOInvertedRawComparerT

Namespace: Ookii.Jumbo.IO
Assembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public class InvertedRawComparer<T> : IRawComparer<T>, 
	IComparer<T>

Type Parameters

T
The type to compare

The InvertedRawComparerT type exposes the following members.

Constructors
 NameDescription
Public methodInvertedRawComparerTInitializes a new instance of the InvertedRawComparerT class
Top
Methods
 NameDescription
Public methodCompare(T, T) Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Public methodCompare(Byte, Int32, Int32, Byte, Int32, Int32) Compares the binary representation of two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodCompareT Compares the binary representation of two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
(Defined by RawComparerHelper)
Top
Remarks

This comparer can be used e.g. to sort in descending order.

See Also