JJ.Framework.Existence.Core 4.1.5729

Prefix Reserved
dotnet add package JJ.Framework.Existence.Core --version 4.1.5729
                    
NuGet\Install-Package JJ.Framework.Existence.Core -Version 4.1.5729
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JJ.Framework.Existence.Core" Version="4.1.5729" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JJ.Framework.Existence.Core" Version="4.1.5729" />
                    
Directory.Packages.props
<PackageReference Include="JJ.Framework.Existence.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JJ.Framework.Existence.Core --version 4.1.5729
                    
#r "nuget: JJ.Framework.Existence.Core, 4.1.5729"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package JJ.Framework.Existence.Core@4.1.5729
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JJ.Framework.Existence.Core&version=4.1.5729
                    
Install as a Cake Addin
#tool nuget:?package=JJ.Framework.Existence.Core&version=4.1.5729
                    
Install as a Cake Tool

Existence.Core

Ever find yourself trying to decide on IsNullOrEmpty, IsNullOrWhiteSpace, a null check, empty list check or whether you should check at all?

Well, no more. Now you just type Has(text) or Has(collection) and be done with it.

Background

Nothing isn't one thing in .NET. It's null, default, white space, 0, NaN, Empty, Length = 0, !Equals(x, default(T?)) && !Equals(x, default(T)). It gets absurd with the many states of nothingness in .NET.

Here we coin the term nully. Don't blame us; the concept already existed, just nobody gave it a name yet.

Features

Grab these methods instead of wrestling with these checks. Your code (and your brain) will thank you:

  • Has / FilledIn / IsNully

    • One step beyond null treating empty strings / white space / 0 / empty lists as nully.

  • Coalesce

    • Pick the first non-nully value (?? on steroids).

  • In / Contains

    • "Is this in that?" tests for collections.

  • Is

    • Loose equality (case/trim-insensitive, etc.) when you don't care about exact matches.

Flags for special occasions:

  • spaceMatters

    • At times, you really care if your string is just a single space.

  • zeroMatters

    • Flip the switch if you consider 0 meaningful.

  • caseMatters

    • To keep us sane as long as possible, the default is to not trip over case mismatches: GREEN = green. The caseMatters flag can make things stricter and case-sensitive again.

Examples

list = list.Where(FilledIn);

if (number.IsNully()) return;

if (Has(name)) sb.Append($" {name} ");

Coalesce(" ", Null, "Hi!") == "Hi!"

"\r\n GREEN\t  ".Is("Green")

"GREEN".In("Red", "Green","Blue") == true!

Coming Soon

  • flex mode – force a full runtime type lookup on values when you're feeling adventurous.
  • char quirks – treat lone ' ' as nully by default (no more sneaky space bugs).
  • float drama – NaN, , +0/–0 all count as empty.
  • enum safety net – invalid enum values get flagged as nully instead of blowing up.
  • all-null collections – if every item is null, the whole collection is officially empty.
  • ultra-loose Is10.Is("10") regardless of type, because how will we stay sane if 10 isn't 10?

Release Notes

2025-06-14 | 2.5 : Existence.Core
  • Initial release
2025-06-24 | 2.6 : Flags
  • spaceMatters flags everywhere
  • caseMatters replaced ignoreCase
  • StringBulder/string more combos possible
  • x.In(a, b, c) extension favored over static In(x, a, b, c)
2025-07-02 | 2.7 : Legacy Lineage
  • Separate Legacy version lineages.
  • For more stable package updates.
  • Expanded IntelliSense docs.
2025-07-21 | 2.8 : Trimmable Libs
  • Compatibility with AOT "Ahead-Of-Time" native compilation, code trimming and single-executable, self-contained apps.
2026-01-25 | 2.9 : zeroMatters
  • Flag when you consider 0 meaningful (not nully)
2026-01-27 | 3.0 : .NET 10
  • Upgraded with explicit support for .NET 10
2026-01-28 | 3.1 : Less Prios
  • Simplify overload picking removing some [Prio] attributes.
  • Sacrifices direct use of keywords e.g. Coalesce(null, "Hallo"); not a real use case anyway.
2026-01-30 | 3.2 : Leading Flags - Coalesce
  • Flags at the beginning of the parameter list, now don't come with a performance penalty.
2026-01-31 | 3.3 : Leading Flags - Contains
  • More notation options for flags for the Contains method
2026-02-01 | 3.4 : Leading Flags - FilledIn
  • Support flags in front for the FilledIn method
2026-02-17 | 3.7 : Clash of the Booleans
  • Leading flags for Has/Is/In/IsNully (supplements trailing flags)
  • Improved Coalesce resolution and performance for 4+ values and collections.
  • Added overloads for reduced clashes between bool flags and value lists.
  • Various non-critical renames for clarity and modularity.
2026-02-23 | 3.8 : Business.Legacy
  • Added project properties hardening code trimming and native compile compatibility.
  • During a release of another library: JJ.Framework.Business.Legacy

🐨 Mr. Koala

Special thanks to Mr. Koala. Once you think of koalas when you read 🐨 Coalesce, you can never unsee it. Mr. Koala eats your nullies. Nully nums are his favorite!

💬 Feedback

Found an issue? Let me know.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.1.5729 87 3/16/2026
4.1.5705 79 3/15/2026
4.0.5600 84 3/13/2026
3.9.5203 92 2/26/2026
3.8.4991 101 2/23/2026
3.8.4987 95 2/23/2026
3.7.4821 98 2/17/2026
3.4.4554 368 2/1/2026
3.3.4542 117 1/31/2026
3.2.4531 120 1/31/2026
3.2.4511 112 1/31/2026
3.1.4474 134 1/28/2026
3.0.4463 106 1/27/2026
2.9.4415 124 1/25/2026
2.8.4205 566 7/21/2025
2.7.3304 142 7/5/2025
2.7.3301 151 7/5/2025
2.7.3296 198 7/3/2025
2.7.3283 238 7/3/2025
Loading failed