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,
But when i try to add items to my dictionary in the same module sayCode:Public MyDictionary as Dictionary(of String, String) = New Dictionary(of String, String)
I am getting error saying "Declaration Expected" for "MyDictionary" object even though I have declared it.Code:MyDictionary.Add("Text", "Hello")
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




Reply With Quote