Dictionary looping performance comparison
- by Shimmy
I have the following 3 options, I believe there are more:
For Each entry In Me
Next
For i = 0 To Count
Dim key = Keys(0)
Dim value = Values(0)
Next
For Each Key In Keys
Dim value = Me(Key)
Next
Personally, I think the For Each is best since the GetEnumerator is TKey, TValue based, but I donnu.