public static bool IsLengthRange(string str, int minLength, int maxLength) { int length = CommonProvider.GetLength(str); return((length >= minLength) && (length < maxLength)); }
public static bool IsExceedMaxLength(string str, int maxLength) { return(CommonProvider.GetLength(str) >= maxLength); }