protected static ReadBool ( string v, bool defaultValue ) : bool | ||
v | string | |
defaultValue | bool | |
return | bool |
protected static bool ReadBool(string v, bool defaultValue)
{
bool ret;
return bool.TryParse(v, out ret) ? ret : defaultValue;
}