NullableStringExtension extension

可空字符串 String? 的扩展,提供空安全检查方法。 Extension on String? providing null-safe emptiness checks.

on

Properties

isNotNullOrEmpty bool

Available on String?, provided by the NullableStringExtension extension

判断可空字符串是否非 null 且非空。 Returns true if the string is not null and not empty.
no setter
isNullOrEmpty bool

Available on String?, provided by the NullableStringExtension extension

判断可空字符串是否为 null 或为空字符串。 Returns true if the string is null or empty ("").
no setter