Skip to main content
Contrib.Bcl.Ranges package icon

Contrib.Bcl.Ranges

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

Total Downloads
62.2K
62,151
Published
Jul 1, 2020
Latest stable version

Install

.NET CLI
dotnet add package Contrib.Bcl.Ranges --version 1.0.0
Package Manager Console
Install-Package Contrib.Bcl.Ranges -Version 1.0.0
PackageReference
<PackageReference Include="Contrib.Bcl.Ranges" Version="1.0.0" />

Frameworks

.NETFramework4.6.1 .NETFramework4.7 .NETStandard2.0 .NETStandard2.1

Dependencies

Microsoft.Bcl.HashCode
.NETFramework4.6.1
[1.1.0, )
System.Memory
.NETFramework4.6.1
[4.5.3, )
System.ValueTuple
.NETFramework4.6.1
[4.5.0, )
Microsoft.Bcl.HashCode
.NETFramework4.7
[1.1.0, )
System.Memory
.NETFramework4.7
[4.5.3, )
Microsoft.Bcl.HashCode
.NETStandard2.0
[1.1.0, )
System.Memory
.NETStandard2.0
[4.5.3, )
System.Memory
.NETStandard2.1
[4.5.3, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.