P
pamelafluente
Hi,
I have a SortedList "MySortedList". I want to get the KEY, not the
VALUE. How can i do that ?? Possibly I want a O(1) operation:
If MySortedList.ContainsKey(SomeObject) Then
SomeObject_ContainedKey = MySortedList.??what????(SomeObject)
End If
PS.
Please note that SomeObject and SomeObject_ContainedKey (the one I want
to get) are *not* the same because clearly I am assuming ContainsKey
return TRUE based on some comparer.
-P
I have a SortedList "MySortedList". I want to get the KEY, not the
VALUE. How can i do that ?? Possibly I want a O(1) operation:
If MySortedList.ContainsKey(SomeObject) Then
SomeObject_ContainedKey = MySortedList.??what????(SomeObject)
End If
PS.
Please note that SomeObject and SomeObject_ContainedKey (the one I want
to get) are *not* the same because clearly I am assuming ContainsKey
return TRUE based on some comparer.
-P