public CustomValidationResult(ValidationResult originalResult)
     : base(originalResult is FormattableMessageResult
             ? (originalResult as FormattableMessageResult).Params
             : new Dictionary<string, object>())
 {
     CopyValues(originalResult);
 }
        private void CopyValues(ValidationResult originalResult)
        {
            var customValidationResult = originalResult as CustomValidationResult;
            MemberName = originalResult.MemberName;
            Message = originalResult.Message;
            PropertyName = originalResult.PropertyName;

            if (customValidationResult != null && customValidationResult.ValidatedValueWasSet)
            {
                ValidatedValue = customValidationResult.ValidatedValue;
            }
        }