VB.Net Dictionary issues

Is it just me or are there issues with using dictionaries in VB.Net?

I keep getting the following error:
error VBNC30456: ‘ContainsKey’ is not a member of ‘System.Collections.Generic.Dictionary2/KeyCollection<System.String,System.Collections.Generic.List1<System.String>>’.

when using this:

Links is declared as follows:
Dim Links as new System.Collections.Generic.Dictionary(of String, System.Collections.Generic.list(of String))

Because I can’t just define a dictionary.

Is this actually an issue or am I just being dense?

How about doing Links.ContainsKey(N1)?

1 Like

ok, now I feel really stupid… :flushed:

That’s where I was going wrong.