I am creating some C# tools for the game I am working on, and I'm adding the "recent files->" drop down menu.
The problem is, I can't get C#'s "Settings" page in VS2008 to allow me to add a typed HashSet. There's just no option to do it.
I got all hackalicious and manually edited the "Settings.Designer.cs" file to:
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Collections.Generic.HashSet<String> RecentLibs {
get {
return ((global::System.Collections.Generic.HashSet<String>)(this["RecentLibs"]));
}
set {
this["RecentLibs"] = value;
}
}
That appears to work just fine. However, I know that at some point it's going to nuke those changes with the code generator.
What's the right way to do this? Does C# have some built in type that I should be using for this functionality rather than just a simple HashSet?