Hack Forums
[.NET] Help with nested Dictionaries - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Help with nested Dictionaries (/showthread.php?tid=4729564)



Help with nested Dictionaries - BahNahNah - Mar 13, 2015

this is for my Nanocore plugin.

im currently using this code
Code
Public OnConnectCommandsStorage As New Dictionary(Of Guid, Dictionary(Of String, List(Of Object)))

OnConnectCommandsStorage(client.Id) = New Dictionary(Of String, List(Of Object))

Dim s(2) As String
        s(0) = "t0"
        s(1) = "t1"
        s(2) = "t2"
        OnConnectCommandsStorage(client.Id)("recovery").Add(s)

but its throwing the error "The given key was not present in the dictionary"
how do i fix this?