private bool GetBoolPropertyValueOrDefault(string Parameter, bool Default) { if (GlobalPropertiesDictionary.ContainsKey(Parameter)) { return(StringSupport.StringToBoolean(GlobalPropertiesDictionary[Parameter])); } else { return(Default); } }
private static bool AppSettingAsBoolOrDefault(this string Key, bool Default) { string KeyValue = Key.AppSetting(); if (StringSupport.StringIsBoolean(KeyValue)) { return(StringSupport.StringToBoolean(KeyValue)); } else { return(Default); } }