Nullable 1.3.0

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.

Install-Package Nullable -Version 1.3.0
dotnet add package Nullable --version 1.3.0
<PackageReference Include="Nullable" Version="1.3.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nullable --version 1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Nullable, 1.3.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Nullable as a Cake Addin
#addin nuget:?package=Nullable&version=1.3.0

// Install Nullable as a Cake Tool
#tool nuget:?package=Nullable&version=1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

https://github.com/manuelroemer/Nullable/blob/master/CHANGELOG.md

Dependencies

This package has no dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Nullable:

Package Downloads
bebop
The .NET runtime for Bebop, a schema-based binary serialization format.
Kevsoft.RTTTL
The core NuGet package for parsing and playing RTTTL (Ring Tone Text Transfer Language) using .NET!
Shim4DotNetFramework.NativeLibrary
This package provides System.Runtime.InteropServices.NativeLibrary backport for .NET Framework or .NET Standard 2.0. Note: This package is not provided by Microsoft or the .NET Foundation.
aqua.tool.polyfill.Nullable
C# source code only package which allows you to use .NET's new nullable attributes and assertion method to check for null values. 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.0 or later.
Shim.System.Collections.Generic.CollectionExtensions
This package provides System.Collections.Generic.CollectionExtensions backport for .NET Standard 2.0. The following extension methods are provided. - GetValueOrDefault<TKey,TValue>(IReadOnlyDictionary<TKey,TValue>, TKey) - GetValueOrDefault<TKey,TValue>(IReadOnlyDictionary<TKey,TValue>, TKey, TValue) - Remove<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) - TryAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) Note: This package is not provided by Microsoft or the .NET Foundation.

GitHub repositories (41)

Showing the top 5 popular GitHub repositories that depend on Nullable:

Repository Stars
neuecc/MessagePack-CSharp
Extremely Fast MessagePack Serializer for C#(.NET, .NET Core, Unity, Xamarin). / msgpack.org[C#]
Fody/Fody
Extensible tool for weaving .net assemblies
spectreconsole/spectre.console
A .NET library that makes it easier to create beautiful console applications.
morelinq/MoreLINQ
Extensions to LINQ to Objects
sebastienros/jint
Javascript Interpreter for .NET

Version History

Version Downloads Last updated
1.3.0 84,685 9/16/2020
1.2.1 85,656 2/24/2020
1.2.0 20,463 12/24/2019
1.1.1 14,508 10/15/2019
1.1.0 4,536 9/26/2019
1.0.0 262 9/25/2019