 | 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.IOAssembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic static int Compare<T>(
this IRawComparer<T> self,
RawRecord record1,
RawRecord record2
)
<ExtensionAttribute>
Public Shared Function Compare(Of T) (
self As IRawComparer(Of T),
record1 As RawRecord,
record2 As RawRecord
) As Integer
public:
[ExtensionAttribute]
generic<typename T>
static int Compare(
IRawComparer<T>^ self,
RawRecord^ record1,
RawRecord^ record2
)
[<ExtensionAttribute>]
static member Compare :
self : IRawComparer<'T> *
record1 : RawRecord *
record2 : RawRecord -> int
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