' ----------------------------------------
' Required Imports :
'
' System.Collections.Generic
' ----------------------------------------
Public Class IntegerComparer
Inherits Comparer(Of Integer)
Public Overrides Function Compare(ByVal param1 As Integer, ByVal param2 As Integer) As Integer
If param1 < param2 Then
' result = <0 if param1 < param2
Return -1
ElseIf param1 > param2 Then
' result = >0 if param1 > param2
Return 1
Else
' result = 0 if param1 = param2
Return 0
End If
End Function
End Class
No comments:
Post a Comment