vb.net - Passing a new empty array as a parameter -


i have dictionary(of integer, string()). when add new key want add empty array defined length it, can add , use values later on.

dim mydict new dictionary(of integer, string())() dim auxdata(24) string  mydict.add(177, auxdata) 

is there way add value dictionary without need use variable use in value? declaring empty string array directly, specified length.

something like:

mydict.add(177, new string(24)) 

just add {} after array.

mydict.add(177, new string(24){}) 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -