NETFx IEnumerable<T>.EmptyIfNull Extension Method NuGet Package

Hate checking for nulls in Linq queries? Turn any null enumerable into an empty one as needed!

var id = schema.Elements.EmptyIfNull().FirstOrDefault(x => x == "Id").




Got any NETFx IEnumerable<T>.EmptyIfNull Extension Method Question?





Info

Version: 1.1.0
Author(s): Daniel Cazzulino, kzu, Clarius
Last Update: Tuesday, August 30, 2011
.NET Fiddle: Create the first Fiddle
Project Url: http://netfx.codeplex.com
NuGet Url: https://www.nuget.org/packages/netfx-System.Collections.Generic.IEnumerable.EmptyIfNull


Install
Install-Package netfx-System.Collections.Generic.IEnumerable.EmptyIfNull
dotnet add package netfx-System.Collections.Generic.IEnumerable.EmptyIfNull
paket add netfx-System.Collections.Generic.IEnumerable.EmptyIfNull
netfx-System.Collections.Generic.IEnumerable.EmptyIfNull Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

.5

avg-downloads-per-day

1

days-since-last-release

4832