AntTweakBar.BoolVariable.IsValid C# (CSharp) Метод

IsValid() приватный Метод

Checks if this variable can hold this value.
private IsValid ( bool value ) : bool
value bool
Результат bool
        private bool IsValid(bool value)
        {
            ThrowIfDisposed();

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