コード例 #1
0
 private static SettingsProperty GetOrAddSetting(this ApplicationSettingsBase settings, string settingName, Type settingType, object defaultValue)
 {
     return(settings.HasSetting(settingName) ? settings.GetSetting(settingName) : settings.AddUserSetting(settingName, settingType, defaultValue));
 }