The new Dictionary<Tkey,TValue> in .net 4.0 is serializable, so… can I now somehow use this in the Settings.Settings or Settings.Designer.cs?
The new Dictionary<Tkey,TValue> in .net 4.0 is serializable, so… can I now somehow use
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sort of. You can define a non-generic class that inherits from the generic class and then reference it in your settings. For example:
Your namespace may not appear in the list of assemblies/namespaces when you select “browse” for your setting’s type, but you can just enter the fully qualified name of the type (e.g.,
MyNamespace.MyClassDictionary) into the text box at the bottom of the dialog. You will need to compile once after defining your custom collection.