Beispiel #1
0
 /// <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));
 }
Beispiel #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);
 }
Beispiel #3
0
 /// <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)));
 }