看完整個 階層...你就瘋了..
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
UserSettingsGroup userSettings = config.GetSectionGroup("userSettings") as UserSettingsGroup;
ClientSettingsSection items = userSettings.Sections["MyFileSystemWatcher.Properties.Settings"] as ClientSettingsSection;
SettingElement item = items.Settings.Get("toUser");
SettingValueElement xml = item.Value;
String value = xml.ValueXml.InnerText;
直接使用內建:
Properties.Settings.Default.toUser
就不用那麼搞工@@"