Table of Contents

IsNullOrEmpty Method

Definition

Namespace
Cuemon.Extensions
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/StringExtensions.cs

IsNullOrEmpty(string)

Determines whether the specified value is null or an Empty string.

public static bool IsNullOrEmpty(this string value)

Parameters

value string

The string to extend.

Returns

bool

true if the value is 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

source IEnumerable<string>

The string sequence to extend.

Returns

bool

true if a string sequence has at least one value that equals to null or empty; otherwise, false.

Exceptions

ArgumentNullException

source is null.