102 packages tagged with “Null”
Optional is a robust option/maybe type for C#.
Add null checks.
A source code only package which allows you to use .NET's new nullable attributes in older target frameworks like .NET Standard 2.0 or the "old" .NET Framework. This package does not contain any compiled binaries, but instead adds the attribute classes as C# source code to your project. Because this code is compiled together with the rest of your code, the built binaries will not have a dependency on this package, meaning that you can perfectly use it for both libraries and applications. The C# code is only included if you are targeting a framework version which does not support the new nullable attributes. For example, if you create a library which multi-targets .NET Standard 2.0 and 2.1, the majority of the attributes are not included in the .NET Standard 2.1 version, because it already provides these by default. Please see https://github.com/manuelroemer/Nullable for additional information on how to use this package.
Prebuilt null Provider for Terraform CDK (cdktf) (Stability: Stable)
Automatic null check injection for runtime C# Nullable Reference Types (NRT) parameter/contract validation.
DEPRECATED: Optional.Extensions has been replaced by more specific packages. Check out Optional.Collections, Optional.Utilities etc. Extended functionality for Optional.
Fluent Null check - With - Return - If - Unless - Do - As<> - AsNullable<> - Cast<> - SilentCast<> - TryWith - TryReturn - TryDo -Throw Check argument and throw exception - ShouldnotBeNull - ShouldHaveValue (for T?) - ShouldBeInRange - ShouldnotBeInRange - ShouldBeAtLeast - ShouldBeAtMost - ShouldSatisfyCondition Enumerable extensions - ForEach - In - Iterate String extensions - IsNullOrEmpty - IsNullOrWhitespace - FillFormat - JoinToString - JoinNotEmptyToString - JoinNotBlankToString - ConcatToString - Parse<T> Enum extensions - GetAttribute<T> - GetAttributes<T> - GetDescription - GetDescriptionOrValue Reflection extensions - GetUnderlyingType - GetMemberValueExpression Expression visitors: - GetMembersExpressionVisitor - GetParametersExpressionVisitor - UpdateMembersExpressionVisitor - UpdateParametersExpressionVisitor Expression extensions: - AndAlso - OrElse - GetParameters - UpdateParameter - GetMembers - GetMemberExpressions - GetLeafMembers - GetLeafMemberExpressions - UpdateMembers Multithreading - ReadLock - WriteLock - UpgradeableLock - ReaderWriterLockAsync ReaderWriterLockSlim extensions - UseReadLock - UseWriteLock - UseUpgradeableLock
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 tool for the job. Providing the job is simple.
Various useful functionality for Optional.
Roslyn analyzer for enforcing null contracts
Ensure.Net is a null checker library for .NET
The Diagnostics library provides classes that help checking incoming parameters of a method using the Fluent API or not, depending on what you prefer.
Useful Optional extensions for working with collections.
A collection of helpful bool? extension methods
Maybe monad for C# - to handle null values and exceptions better - including Linq support, chaining, and asynchronous programming.
The DateTimePicker control provides a single, intuitive UI for selecting date and time values. The TimeEditor control provides a simple masked editor for time values only. You can edit your date and time values by using the spin buttons, using the keyboard arrows, or by typing in fields.
Contains many exception classes for common basic errors. Clear messages, concise syntax, strongly-typed, good performance. Generates messages like "myParent.MyChildren[0].MyProperty is null.", "height of 2 is less than 10.", "Customer with key { customerNumber = 1234, customerType = Subscriber } not found."
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.
A class which defines a date which can have null for components (day, month, year) of the date.
Helper functions to aid in argument validation for C# functions. Example Usage: Throw.IfNull(argument, nameof(argument)); Throw.IfNullOrEmpty(argument, nameof(argument));
Adds functional programming aspects using functions like Some, None, Ok, Error
Provides extension methods for the Guardian source code package.
A robust option type for C#.
Maybe is a value type (struct) that is guaranteed to never be NULL and either contain an object of the specified type or nothing at all.
option & chooseSeq computational expressions that work with Null/Option/Nullable
A simple and easy to use option type for C#.
A collection of helpful DateTime? extension methods
A collection of useful extension methods for .NET types including strings, collections, dictionaries, enumerables, and reflection.