D
DippyDog
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://
www.hanselman.com/blog/CommentView.aspx?guid=7df37316-2408-404a-a7f9-89fafe19e082#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!
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://
www.hanselman.com/blog/CommentView.aspx?guid=7df37316-2408-404a-a7f9-89fafe19e082#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!