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

IEnumerable.IsNullOrEmpty(...)

An extension method to look over a sequence of elements and work out whether it is empty or null.


bool IsNullOrEmpty<T>(this IEnumerable<T> source)

Parameters

Example

var aSource = null;
bool isNullOrEmpty = aSource.IsNullOrEmpty(); // true
});