Skip to content

Commit a38c768

Browse files
committed
Update CollectionValueGetter.vb
1 parent d11e023 commit a38c768

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Microsoft.VisualBasic.Core/src/Extensions/Collection/CollectionValueGetter.vb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,11 @@ Public Module CollectionValueGetter
327327
''' <typeparam name="TKey"></typeparam>
328328
''' <typeparam name="TValue"></typeparam>
329329
''' <param name="table"></param>
330-
''' <param name="keys"></param>
330+
''' <param name="keys">
331+
''' the synonym keys
332+
''' </param>
331333
''' <param name="default"></param>
332-
''' <returns></returns>
334+
''' <returns>returns the key-value which is matched with any input synonym <paramref name="keys"/>.</returns>
333335
<Extension>
334336
Public Function TryGetValue(Of TKey, TValue)(table As Dictionary(Of TKey, TValue),
335337
keys As TKey(),
@@ -351,6 +353,7 @@ Public Module CollectionValueGetter
351353
#End If
352354
Return [default]
353355
Else
356+
' scan the synonym keys
354357
For Each key As TKey In keys
355358
If table.ContainsKey(key) Then
356359
Return table(key)

0 commit comments

Comments
 (0)