85 packages tagged with “Nullable”
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.
A Roslyn analyzer to improve the experience when working with nullable reference types.
Automatic null check injection for runtime C# Nullable Reference Types (NRT) parameter/contract validation.
Exposes top-level nullability information from reflection. Same API as net6, but can be consumed by any runtime supporting netstandard2.0.
Code-only package that exposes top-level nullability information from reflection. Same API as net6, but can be consumed by any runtime supporting netstandard2.0.
Simple optional type for .NET
A lightweight, allocation-free atomic nullable boolean struct implemented on top of an inline ValueAtomicInt
A collection of helpful bool? extension methods
Nullability annotation info reader for .net types. Key improvement compared with standard NullabilityInfoContext is for more nullability info support of Generic type.
Extensions to DotNet, mostly using attributes
C# source code only package which allows to use .NET's nullable attributes targeting frameworks older than .NET 5.0. Nullable attributes are used by the compiler to provide warnings when you may dereference a null value, throwing a `System.NullReferenceException`. This package is an extension to https://www.nuget.org/packages/Nullable/. The C# code is only included if targeting a framework version which does not already cover nullable attributes. Requires C# 8 or later. See https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/attributes/nullable-analysis for more info. Package documentation on github: https://github.com/6bee/aqua-tools/tree/v2.2.9#aquatoolpolyfillnullable
Source Generator to create ValueObject that support Undefind (Empty) and Null values. Forked from UnitGenerator.
Provides useful extension methods for primitive .Net data types.
Nullable and clearable datetime picker component for Maui
option & chooseSeq computational expressions that work with Null/Option/Nullable
A set of extensions methods to help working with nullable types by implementing the Maybe monad on top of `T?`. Documentation: https://github.com/bert2/Nullable.Extensions Release notes: Add new `Else()` extension.
A collection of helpful DateTime? extension methods
Analyzer to avoid usage of null in class types. To be used in conjuction with NullableClass
Guard your methods' Ins and Outs. Helpers to add semantics to the optionality of your parameters and results from method calls.
A validation attribute that ensures a nullable string is a valid, nullable GUID.
Provides various checks for built-in .NET types (is nullable, is enum, is enumerable etc.) Add this package to your core library, so it would get the source code of this module without installing a binary dependency. Then proceed with using corresponding functionality from Atom.Util namespace, like if it was installed using binary assembly. Check out GitHub for more docs and usage examples.
Source code package. An extension for determining whether or not a type is nullable.
Provides a set of extension members for commonly used types within .Net (C#) to enable writing code fluently. Also adds support for different patterns like the option or result pattern (unions) and further enhances .Net features like LINQ by adding more methods and overloads to existing methods as well as bringing promise like extensions to .Net Tasks.
Polyfills for .NET Core features on .NET Framework and .NET Standard 2.0
A convenient, versatile and robust Option type for .NET applications.
Helper classes to avoid usage of null in class types. To be used in conjuction with NullableClass.Analyzer
Package Description
DotNetPowerExtensions.Analyzers
Provides a set of helpful extension methods and other bits allowing for more convenient usage approaching the Google.Protobuf package.