Batch.Internal.JsonDataExtensions.GetBool C# (CSharp) Метод

GetBool() публичный статический Метод

public static GetBool ( this jsonData, string key, bool defaultValue ) : bool
jsonData this
key string
defaultValue bool
Результат bool
        public static bool GetBool(this JsonData jsonData, string key, bool defaultValue)
        {
            try
            {
                return (bool)jsonData[key];
            }
            catch
            {
                return defaultValue;
            }
        }