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

            if (StringSupport.StringIsBoolean(KeyValue))
            {
                return(StringSupport.StringToBoolean(KeyValue));
            }
            else
            {
                return(Default);
            }
        }