Legend
| Abstract class: RT.Util.SettingsBase
SummaryProvides a base class for settings classes, implementing certain common usage patterns. See remarks for detailed usage instructions.RemarksDerive a class from this one and add the fields you wish to persist. Mark those you don't want stored with the ClassifyIgnoreAttribute. You must mark the derived class with SettingsAttribute.
Once the above is done, the settings can be saved by calling SettingsBase.Save(
static class Program
{
public static MySettings Settings;
static void Main(string[] args)
{
SettingsUtil.LoadSettings(out Settings);
DoWork();
Settings.Save();
}
}
[Settings("MyApplicationName", SettingsKind.UserSpecific)]
class MySettings : SettingsBase
{
public string SomeSetting = "initial/default value";
}SettingsThreadedBase implements an extra method to enable settings to be queued for a save on a separate thread, to reduce the performance impact of less important saves. Instance methods
Instance properties
|