Contrib.Bcl.Ranges NuGet Package

This package polyfills the types required for the C# 8.0 feature Ranges on targets lower than netcoreapp3.0 and netstandard2.1.

This includes:

.NET Framework - starting from net461
.NET Standard 2.0 Compatible Runtimes - this includes .NET Core 2.x

Usage

Add this to your csproj file:

<PackageReference Include="Contrib.Bcl.Ranges" Version="1.0.0-preview8.19405.3" />

and add this to the PropertyGroup:

<LangVersion>8.0</LangVersion>

Now we can start using this handy new language feature 😀

Console.WriteLine("Hello world!"[6..^1]); // world.




Got any Contrib.Bcl.Ranges Question?





Info

Version: 1.0.0
Author(s): Stuart Lang
Last Update: Wednesday, July 1, 2020
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/Contrib.Bcl.Ranges


Install
Install-Package Contrib.Bcl.Ranges
dotnet add package Contrib.Bcl.Ranges
paket add Contrib.Bcl.Ranges
Contrib.Bcl.Ranges Download (Unzip the "nupkg" after downloading)

.NETFramework 4.7 .NETStandard 2.0 net461 netstandard2.1


Tags



STATS

must-have-score

avg-downloads-per-day

3

days-since-last-release

1418