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: 2.0.0
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 methodInvertedRawComparerT
Initializes 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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns 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