TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray 1.0.1

A source code only package which allows you to use C# new array range syntax 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 helper methods 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 range syntax. For example, if you create a library which multi-targets .NET Standard 2.0 and 2.1, the helper methods are not included in the .NET Standard 2.1 version, because it already provides these by default.

Install-Package TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray -Version 1.0.1
dotnet add package TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray --version 1.0.1
<PackageReference Include="TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray" Version="1.0.1">
  <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 TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray, 1.0.1"
#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 TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray as a Cake Addin
#addin nuget:?package=TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray&version=1.0.1

// Install TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray as a Cake Tool
#tool nuget:?package=TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Dependencies

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 926 11/4/2020
1.0.0 191 11/4/2020