Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

IsExternalInit.DirectDependency 1.0.3.1

Install from the command line:
Learn more about NuGet packages
$ dotnet add package IsExternalInit.DirectDependency --version 1.0.3.1

About this version

A source code only package which allows you to use C# 9's init and record features in older target frameworks like .NET Standard 2.0 or the "old" .NET Framework by providing a polyfill for the IsExternalInit class.

This package does not contain any compiled binaries, but instead adds the IsExternalInit class 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 IsExternalInit class. For example, if you create a library which multi-targets .NET Standard 2.0 and .NET 5.0, the IsExternalInit class is not provided in the .NET 5.0 compilation, because .NET 5.0 already provides support for the class by default.

Please see https://github.com/BUTR/IsExternalInit.DirectDependency for additional information on how to use this package.

Details


Assets

  • IsExternalInit.DirectDependency.1.0.3.1.nupkg

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all