public override void Check(IValidateResult result, object instance) { instance.ThrowIfNullArgument(nameof(instance)); result.ThrowIfNullArgument(nameof(result)); _method.Invoke(instance, new object[] { result }); }
public override void Check(IValidateResult result, object instance) { instance.ThrowIfNullArgument(nameof(instance)); result.ThrowIfNullArgument(nameof(result)); _method.Invoke(instance, new object[] { result }); }
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); }