Compile error while adding items to nested dictionary

Posted by anshu on Stack Overflow See other posts from Stack Overflow or by anshu
Published on 2010-03-15T15:29:46Z Indexed on 2010/03/15 15:39 UTC
Read the original article Hit count: 321

Filed under:

I am trying to created nested dictionary variable like the below, But I get compile error stating that it needs "}" at line where I am adding items (line #2) to my nested dictionary.

What Am I missing here? Thanks.

Dim myNestedDictionary As Dictionary(Of String, Dictionary(Of String, Integer)) = New Dictionary(Of String, Dictionary(Of String, Integer))()


myNestedDictionary.Add("A", New Dictionary("A", 4)())

© Stack Overflow or respective owner

Related posts about vb.net