IsNullOrEmpty Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
IsNullOrEmpty(string)
Determines whether the specified value is null or an Empty string.
public static bool IsNullOrEmpty(this string value)
Parameters
Returns
- bool
trueif thevalueis null or an empty string (""); otherwise,false.
IsNullOrEmpty(IEnumerable<string>)
Determines whether a string sequence has at least one value that equals to null or empty.
public static bool IsNullOrEmpty(this IEnumerable<string> source)
Parameters
sourceIEnumerable<string>The string sequence to extend.
Returns
- bool
trueif a string sequence has at least one value that equals to null or empty; otherwise,false.
Exceptions
- ArgumentNullException
sourceis null.