Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Help with nested Dictionaries

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?
Lotta blood to let, peace to make, give a fuk about a check


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Will PattersonJan 21, 2022 02:13 AM 7 423 Jan 21, 2022 02:13 AM
Last Post: matias!
[C] by lockheadApr 22, 2021 07:10 AM 0 147 Apr 22, 2021 07:10 AM
Last Post: lockhead
[Python] by Will PattersonOct 13, 2017 07:35 AM 3 187 Oct 13, 2017 07:35 AM
Last Post: TheMarkMan