public static ArgumentOutOfRangeException CreateFormattedException(this ArgumentOutOfRangeException exception) { return new ArgumentOutOfRangeException( exception.ParamName, exception.ActualValue, string.Format(CultureInfo.InvariantCulture, Resources.FormattedArgumentOutOfRangeExceptionMessageTemplate, exception.Message)); } }