AntTweakBar.DoubleVariable.IsValid C# (CSharp) Method

IsValid() private method

Checks if this variable can hold this value.
private IsValid ( double value ) : bool
value double
return bool
        private bool IsValid(double value)
        {
            ThrowIfDisposed();

            return !Validating.GetInvocationList().Select(h => {
                var check = new DoubleValidationEventArgs(value);
                h.DynamicInvoke(new object[] { this, check });
                return !check.Valid;
            }).Any(failed => failed);
        }