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

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

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

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