Runtime. CompilerServices. RuntimeHelpers. GetSubArray
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>
paket add TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray --version 1.0.1
#r "nuget: TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray, 1.0.1"
// 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
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.
This package has no dependencies.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.