I have a list of key-value pairs that should be shared, but I don't
know how to code it. The trick for me is how to populate it when it's
instantiated.
Herfried got so close to showing me how in a post some while back with
this code...
Private Shared m_Bla As Dictionary = New Dictionary(...)
Private Shared ReadOnly Property Bla() As Dictionary
Get
Return m_Bla
End Get
End Property
But that doesn't show me how to put anything into the list. I'm on the
verge of doing it in C# since Scott Hanselman's recent post (http://
http://www.hanselman.com/blog/Commen...2#commentstart)
showed populating a dictionary object upon instantiation. The same
post, actually, is the same that's motivating me to clean up my code a
bit, namely using a dictionary to map things instead of a big select
(or "switch" in his post).
Thanks!