This repository contains some of my common utilities.
Important
This package is now deprecated as it isn't necessary in .NET 8+.
Utilities for working with arguments with nullable awareness.
using Treasure.Utils;
public void SomeMethod(object? anObject, string? aString, object inheritedButUnused)
{
Argument.MarkUsed(inheritedButUnused);
Argument.NotNull(anObject);
Argument.NotNullOrEmpty(aString);
Argument.NotNullOrWhiteSpace(aString);
}