VB.Net Dictionary issues


#1

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.Keys.ContainsKey(N1)

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?


#2

How about doing Links.ContainsKey(N1)?


#3

ok, now I feel really stupid… :flushed:

That’s where I was going wrong.

Thanks.