Click or drag to resize

RawComparerHelper.Compare<T> Method

Compares the binary representation of two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

Namespace: Ookii.Jumbo.IO
Assembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public static int Compare<T>(
	this IRawComparer<T> self,
	RawRecord record1,
	RawRecord record2
)

Parameters

self  IRawComparer<T>
The comparer to use.
record1  RawRecord
The first record.
record2  RawRecord
The second record.

Type Parameters

T
The type of the objects to compare.

Return Value

Int32
A signed integer that indicates the relative values of the first and second object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IRawComparer<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also