Initialize a object with array as value

I need to use and variable type object with string as its key and array as its value.

However, I tried to initialize it but there is a error because the sintaxis is wrong.

These are the ways in which I attempted

new Dictionary(of String,string)
new Dictionary(of String,system.Array)
new Dictionary(of String,string{})

All of them do not work

can someone help me?

Looks like you missed out the last one. Did you try this?

Of String,String()

1 Like