protected GetBooleanValue ( string key, bool defaultValue ) : bool | ||
key | string | |
defaultValue | bool | |
return | bool |
protected bool GetBooleanValue(string key, bool defaultValue)
{
bool result;
return bool.TryParse(GetStringValue(key, string.Empty), out result) ? result : defaultValue;
}