ToBool() static private méthode

static private ToBool ( string value ) : bool?
value string
Résultat bool?
Exemple #1
0
        public static bool TryConstructYamlBool(BaseConstructor /*!*/ ctor, Node /*!*/ node, out bool result)
        {
            var b = ResolverScanner.ToBool(ctor.ConstructScalar(node));

            if (b != null)
            {
                result = b.Value;
                return(true);
            }
            else
            {
                result = false;
                return(false);
            }
        }