IsNullOrEmpty()

String::IsNullOrEmpty() const method

Checks if string is empty or is considered null.

bool System::String::IsNullOrEmpty() const

Return Value

true if string is empty or null, false otherwise.

String::IsNullOrEmpty(const String&) method

Checks if passed string is null or empty.

static bool System::String::IsNullOrEmpty(const String &str)

Arguments

ParameterTypeDescription
strconst String&String to check.

Return Value

true if string is null or empty, false otherwise.

See Also