Automatically save settings on exit C#

In VB.NET there is an option to "Automagically save settings on exit" is there an equivalent option in C# or does one need to write the following code?"

private void frmMain_FormClosing(object sender, FormClosingEventArgs e)
{
    Properties.Settings.Default.Save();
}
11
задан user7116 8 June 2011 в 16:30
поделиться