/// <summary>
 /// Format a String dropping extra spaces and truncate value
 /// </summary>
 /// <param name="value"></param>
 /// <param name="limit"></param>
 /// <param name="endChars"></param>
 /// <returns></returns>
 public static string FormatString(string value, int limit, string endChars)
 {
     return(PagSeguroUtil.TruncateValue(PagSeguroUtil.RemoveExtraSpaces(value), limit, endChars));
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="parameterName"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public QueryStringBuilder Append(string parameterName, DateTime value)
 {
     AppendCore(parameterName, PagSeguroUtil.FormatDateXml(value));
     return(this);
 }
 /// <summary>
 /// Check if var is empty
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public static bool IsEmpty(string value)
 {
     return(string.IsNullOrEmpty(PagSeguroUtil.RemoveExtraSpaces(value)));
 }