Ejemplo n.º 1
0
        public override void Check(IValidateResult result, object instance)
        {
            instance.ThrowIfNullArgument(nameof(instance));
            result.ThrowIfNullArgument(nameof(result));

            _method.Invoke(instance, new object[] { result });
        }
Ejemplo n.º 2
0
        public override void Check(IValidateResult result, object instance)
        {
            instance.ThrowIfNullArgument(nameof(instance));
            result.ThrowIfNullArgument(nameof(result));

            _method.Invoke(instance, new object[] { result });
        }
Ejemplo n.º 3
0
        public override void Check(IValidateResult result, object instance)
        {
            Assertion.IsNotNull(_pInfo, "Property info not set.");

            instance.ThrowIfNullArgument(nameof(instance));
            result.ThrowIfNullArgument(nameof(result));

            object val = _pInfo.GetValue(instance, null);

            DoCheck(result, instance, val);
        }