Lucene.Net.Spatial.Queries.SpatialArgsParser.ReadBool C# (CSharp) Method

ReadBool() protected static method

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;
        }