TA.System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray (nuget): 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.
Keywords: source|compiletime|range|index|GetSubArray|RuntimeHelpers|csharp