StringHelper.IsEmptyOrNull method (1 of 2)
namespace: Serenity assembly: Serenity.Net.Core
Determines whether the collection is empty or null.
public static bool IsEmptyOrNull(this ICollection collection)
parameter | description |
---|---|
collection | The collection. |
Return Value
true
if the collection is empty or null; otherwise, false
.
See Also
- class StringHelper
StringHelper.IsEmptyOrNull method (2 of 2)
namespace: Serenity assembly: Serenity.Net.Core
Returns true if String is null
or empty (zero length)
public static bool IsEmptyOrNull(this string str)
parameter | description |
---|---|
str | String. |
Return Value
If str is null
or empty, true
Remarks
This function might be useful if an empty string is assumed to be null
.This is an extension method, so it can be called directly as str.IsNullOrEmpty()
.
See Also
- class StringHelper