Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static class: RT.Util.SettingsUtil

Summary

Provides convenience methods for loading and saving application settings.

Static methods

SettingsAttribute
GetAttribute(Type settingsType)
Retrieves the mandatory SettingsAttribute for the specified settings class type. Throws if the type doesn't have it specified.
SettingsAttribute
GetAttribute<TSettings>()
Retrieves the mandatory SettingsAttribute for the type TSettings. Throws if the type doesn't have it specified.
bool
LoadSettings<TSettings>(out TSettings settings, string filename = null, SettingsSerializer? serializer = null)
Loads settings into the specified class, or, if not available, creates a new instance of the class. See Remarks. (see also remarks)
void Performs safety checks to ensure that a settings object conforms to various requirements imposed by SettingsUtil methods. Run this method as a post-build step to ensure reliability of execution. For an example of use, see PostBuildChecker.RunPostBuildChecks(string, params Assembly[]). This method is available only in DEBUG mode.