0

I am having a bit of an issue using Dictionary as an argument in a sub or function

' Dictionary
Sub DoSomethingWithDictionary(ByVal MyDictionary As Dictionary(Of String, String))
    ' Some Code
End Sub

' Some Sub that calls sub with Dictionary
Sub SomeSub()
    ' I get a warning on the line below:
    DoSomethingWithDictionary(New Dictionary(Of String, String) From {"TheValue", "TheKey"})
End Sub

I get the following Error:

Argument not specified for parameter 'value' of 'Public Overload Sub Add(Key as String, Value as String)

Elias Wick
  • 483
  • 6
  • 21

0 Answers0