Structure TSKey
Implements IComparable(Of TSKey)
Private _ts As TimeSpan
Public Function CompareTo(ByVal other As TSKey) As Integer Implements System.IComparable(Of TSKey).CompareTo
Dim comp As Integer = _ts.CompareTo(other._ts)
If comp <> 0 Then
Return comp
Else
Return 1
End If
End Function
Public Sub New(ByVal ts As TimeSpan)
_ts = ts
End Sub
End Structure
http://msdn.microsoft.com/en-us/library/ms132319.aspx