/// <summary>
 /// Updates the flyweight for a parameter.
 /// </summary>
 /// <param name="parameterInfo">The parameter.</param>
 public void UpdateFlyweight(ParameterInfo parameterInfo)
 {
     this.parameterInfo = parameterInfo;
     this.ignoreNullsAttribute
         = ValidationReflectionHelper.ExtractValidationAttribute<IgnoreNullsAttribute>(parameterInfo, string.Empty);
     this.validatorCompositionAttribute
         = ValidationReflectionHelper.ExtractValidationAttribute<ValidatorCompositionAttribute>(parameterInfo, string.Empty);
 }
 private void UpdateFlyweight(MemberInfo memberInfo, Type targetType)
 {
     this.memberInfo = memberInfo;
     this.targetType = targetType;
     this.ignoreNullsAttribute
         = ValidationReflectionHelper.ExtractValidationAttribute<IgnoreNullsAttribute>(memberInfo, this.ruleset);
     this.validatorCompositionAttribute
         = ValidationReflectionHelper.ExtractValidationAttribute<ValidatorCompositionAttribute>(memberInfo, this.ruleset);
 }