Dear All,
In my project I have a module and inside module I declared an object of type Dictionary class. The declaration is done as,
Code:
Public MyDictionary as Dictionary(of String, String) = New Dictionary(of String, String)
But when i try to add items to my dictionary in the same module say

Code:
MyDictionary.Add("Text", "Hello")
I am getting error saying "Declaration Expected" for "MyDictionary" object even though I have declared it.

Can anybody explain why is it giving this error even after declaration or if the syntax is wrong can anybody post the proper syntax?

Thanks in advance.

Regards,
Susheelss