Exemple #1
0
 private void UpdateFlyweight(MemberInfo memberInfo, Type targetType)
 {
     _memberInfo                    = memberInfo;
     _targetType                    = targetType;
     _ignoreNullsAttribute          = ValidationReflectionHelper.ExtractValidationAttribute <IgnoreNullsAttribute>(memberInfo, _ruleset);
     _validatorCompositionAttribute = ValidationReflectionHelper.ExtractValidationAttribute <ValidatorCompositionAttribute>(memberInfo, _ruleset);
 }
 public void UpdateFlyweight(ParameterInfo parameterInfo)
 {
     _parameterInfo                 = parameterInfo;
     _ignoreNullsAttribute          = ValidationReflectionHelper.ExtractValidationAttribute <IgnoreNullsAttribute>(parameterInfo, string.Empty);
     _validatorCompositionAttribute = ValidationReflectionHelper.ExtractValidationAttribute <ValidatorCompositionAttribute>(parameterInfo, string.Empty);
 }