stringdictionary

StringDictionary vs Dictionary<string, string>

Does anyone have any idea what the practical differences are between the System.Collections.Specialized.StringDictionary object and System.Collections.Generic.Dictionary? I've used them both in the past without much thought as to which would perform better, work better with Linq, or provide any other benefits. Any thoughts or suggestio...

StringDictionary as a common static list?

Hi, what I'm trying to do is have a project-wise static dictionary so I can access a single list from anywhere in my code. Until now, I came up with this solution, a public static class with a public property: public static class Common { public static StringDictionary Domains { get { StringDictionar...

How do you store and retrieve a StringDictionary in app.config?

I have a list of information in a string dictionary that I want to store in the app.config for my program. I've created the entry in the "settings" portion of the program called "extentions" but when I go to use "Settings.Default.Extentions" I get an error that it is null. Is there a trick or something to using this? private void Load...

In C# .NET, is there a reason for no copy constructor for StringDictionary?

I apologize if this is a dumb question, but hear me out: Dictionary<string, string> genericDict = new Dictionary<string, string>; genericDict.Add("blah", "bloop"); // Use the copy constructor to create a copy of this dictionary return new Dictionary<string, string>(genericDict); In the above code sample, I can create a copy of a gener...

listbox bound to a Specialized.StringDictionary does not update

I've got a listbox (listStorageLocations) - thats bound to a BindingSource called listStorageLocationsBindingSource. This BindingSource is bound to a collection of StringDictionary items in my Settings.Default.StorageLocations. The listbox's datasource is then set to the bindingsource. I cannot for the life of me get anything to display ...