returned for Tags:"Null"
A class which defines a date which can have null for components (day, month, year) of the date.
Monads are logic in-between instructions and often called "programmable ; " a common monads (Maybe, Do, Return ....) that helps with null checks
Null Aware ToString
Null aware ToString magically calls ToString method on any object without throwing NullReferenceException.
Optional: A robust option type
Optional is a robust option type for C#.
DEPRECATED: Optional.Extensions has been replaced by more specific packages. Check out Optional.Collections, Optional.Utilities etc.
Extended functionality for Optional.
Guardian. Mostly of null values.
An unobtrusive, lightweight, guard clause source code package: less than 300 lines of code.
Should be used like this:
Guard.Against.Null(() => parameter);
May be extended like this:
Guard.Against.Empty(() => collection);
Possibly the best...
Fluent Null check
Check argument and throw exception
- ShouldHaveValue (for T?)
A option type that prevents using null or 'magic values' (NullObject, exit code -1, index out of range, etc.) in your code.
A safe monadic binder that will evaluate an expression chain and return an option type with information about whether the chain succeeded or not and where it failed.
Roslyn analyzer for enforcing null contracts
Provides extension methods for the Guardian source code package.
Useful Optional extensions for working with collections.
Various useful functionality for Optional.
Guard is a simple class which helps you validate arguments.
Provides Methods to prevent NullReferenceExceptions
Maybe type representing optional values.
A small library to navigate null-safely through objects.
A set of useful extension methods.
Null and default values checking, Strings helpers, basic validators.
Instead of null checks you can simply write for example Result.OrDefault(() => SelectedItem.Invoice.Employee.Name.ToString());