IsNullOrWhiteSpace与IsNullOrEmpty
public static boolean IsNullOrEmpty(String value) {
return (value == null || value.length() == 0);
}
public static boolean IsNullOrWhiteSpace(String value) {
if (value == null) return true;
return (value.trim().length() == 0);
}

浙公网安备 33010602011771号