I had my output as string and i want to add to dictonary (string ,object). But getting object reference not set

i had my output as string and i want to add to dictonary (string ,object). But getting object reference not set

Hi,

Can you try to initialize as the following, first?

SendToDruid = new Dictionary<string,object>()

Regards

,

1 Like


still error

1 Like

Hey @MitheshBolla

Kindly try this

new Dictionary (Of String, Object)

Thanks
#nK

This is for vb , i tried it , but its not working for c#

1 Like

Hey @MitheshBolla

For C#, new Dictionary<String,Object>()

Please make sure you do the same, n should be small in new.

Thanks
#nK

1 Like

thanks you, new is small and work

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.