Skip to content

Commit

Permalink
Merge branch 'hotfix-1.7.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
John Simons committed Oct 30, 2015
2 parents 7fc4930 + 9858832 commit 2b6a266
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,10 @@ T ReadAppSetting<T>(string key, T defaultValue)
if (File.Exists(Service.ExePath))
{
var configManager = ConfigurationManager.OpenExeConfiguration(Service.ExePath);
if (configManager.AppSettings.Settings.AllKeys.Contains(key))
if (configManager.AppSettings.Settings.AllKeys.Contains(key, StringComparer.OrdinalIgnoreCase))
{
return (T) Convert.ChangeType(configManager.AppSettings.Settings[key].Value, typeof(T));
}


}
try
{
Expand Down

0 comments on commit 2b6a266

Please sign in to comment.