Beispiel #1
0
 /// <summary>
 /// Check if var is empty
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public static bool IsEmpty(string value)
 {
     return(string.IsNullOrEmpty(PagSeguroUtils.RemoveExtraSpaces(value)));
 }
Beispiel #2
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(PagSeguroUtils.TruncateValue(PagSeguroUtils.RemoveExtraSpaces(value), limit, endChars));
 }