Nullable 1.2.1
See the version list below for details.
dotnet add package Nullable --version 1.2.1
NuGet\Install-Package Nullable -Version 1.2.1
<PackageReference Include="Nullable" Version="1.2.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
paket add Nullable --version 1.2.1
#r "nuget: Nullable, 1.2.1"
// Install Nullable as a Cake Addin
#addin nuget:?package=Nullable&version=1.2.1
// Install Nullable as a Cake Tool
#tool nuget:?package=Nullable&version=1.2.1
A source code only package which allows you to use .NET Core 3.0'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 a single C# file with the attribute classes to your project. Because this C# file gets 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# file 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 file is only included in the .NET Standard 2.0 version, because .NET Standard 2.1 already provides the nullable attributes by default.
Please see https://github.com/manuelroemer/Nullable for additional information on how to use this package.
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard1.0 netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1 |
.NET Framework | net20 net35 net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen30 tizen40 tizen60 |
Universal Windows Platform | uap uap10.0 |
Windows Phone | wp8 wp81 wpa81 |
Windows Store | netcore netcore45 netcore451 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
This package has no dependencies.
NuGet packages (11)
Showing the top 5 NuGet packages that depend on Nullable:
Package | Downloads |
---|---|
Yoakke.Polyfill
A collection of .NET libraries to help compiler development. |
|
TopDownProteomics
Package Description |
|
bebop
The .NET runtime for Bebop, a schema-based binary serialization format. |
|
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. |
|
Bannerlord.MCM.Source
A library for easy Setting integration. Is a self sufficient library, requires the Standalone module to show the settings in the UI! |
GitHub repositories (65)
Showing the top 5 popular GitHub repositories that depend on Nullable:
Repository | Stars |
---|---|
restsharp/RestSharp
Simple REST and HTTP API Client for .NET
|
|
spectreconsole/spectre.console
A .NET library that makes it easier to create beautiful console applications.
|
|
AngleSharp/AngleSharp
:angel: The ultimate angle brackets parser library parsing HTML5, MathML, SVG and CSS to construct a DOM based on the official W3C specifications.
|
|
Fody/Fody
Extensible tool for weaving .net assemblies
|
|
sebastienros/jint
Javascript Interpreter for .NET
|