Stravaig.Extensions.Core

A set of small extensions to make life a little easier.

View on GitHub View on NuGet
Documentation last built on Thursday, 16 November, 2023

string.HasContent()

An extension method to determine if a string has content, or is null, empty or consists only of whitespace.


bool HasContent(this string target)

Parameters

Example

var aString = "I have content";
bool hasContent = aString.HasContent(); // true
});

See also