Click or drag to resize

RawComparerHelperCompareT 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: 2.0.0
Syntax
public static int Compare<T>(
	this IRawComparer<T> self,
	RawRecord record1,
	RawRecord record2
)

Parameters

self
Type: Ookii.Jumbo.IOIRawComparerT
The comparer to use.
record1
Type: Ookii.Jumbo.IORawRecord
The first record.
record2
Type: Ookii.Jumbo.IORawRecord
The second record.

Type Parameters

T
The type of the objects to compare.

Return Value

Type: 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 IRawComparerT. 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