Rocky,
There was an item in the wish list for NVLB. I just checked the implementation and I am not sure if the right wish was implemented.
The code in 3.0.2 now has 2 methods which are essentially identical: (same thing for Value methods)
'Original method:
Public Function Key(ByVal value As V) As K
For Each item As NameValuePair In Me
If item.Value.Equals(value) Then
Return item.Key
End If
Next
Return Nothing
End Function
'New method:
Public Function GetKey(ByVal value As V) As K
For Each item As NameValuePair In Me
If item IsNot Nothing AndAlso item.Value.Equals(value) Then
Return item.Key
End If
Next
Return Nothing
End Function
In my NVL Base class I added what I thought were the 2 methods on the wish list:
Public Function GetItemByKey(ByVal key As K) As NameValuePairPlease comment.
Joe
Copyright (c) Marimer LLC