Contrib.Bcl.Ranges
1.0.0
dotnet add package Contrib.Bcl.Ranges --version 1.0.0
NuGet\Install-Package Contrib.Bcl.Ranges -Version 1.0.0
<PackageReference Include="Contrib.Bcl.Ranges" Version="1.0.0" />
paket add Contrib.Bcl.Ranges --version 1.0.0
#r "nuget: Contrib.Bcl.Ranges, 1.0.0"
// Install Contrib.Bcl.Ranges as a Cake Addin
#addin nuget:?package=Contrib.Bcl.Ranges&version=1.0.0
// Install Contrib.Bcl.Ranges as a Cake Tool
#tool nuget:?package=Contrib.Bcl.Ranges&version=1.0.0
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
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETFramework 4.6.1
- Microsoft.Bcl.HashCode (>= 1.1.0)
- System.Memory (>= 4.5.3)
- System.ValueTuple (>= 4.5.0)
-
.NETFramework 4.7
- Microsoft.Bcl.HashCode (>= 1.1.0)
- System.Memory (>= 4.5.3)
-
.NETStandard 2.0
- Microsoft.Bcl.HashCode (>= 1.1.0)
- System.Memory (>= 4.5.3)
-
.NETStandard 2.1
- System.Memory (>= 4.5.3)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on Contrib.Bcl.Ranges:
Package | Downloads |
---|---|
OpenMod.Core
Core service implementations for OpenMod |
|
ChemSharp
Library for processing of chemistry related files (aiming at spectroscopy and structural files) |
|
SimpleEventSourcing
Library for simple event sourcing |
|
SimpleEventSourcing.EntityFramework
Library for simple event sourcing |
|
Daf.Core.Sdk
SDK for Daf.Core plugins. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Contrib.Bcl.Ranges:
Repository | Stars |
---|---|
openmod/openmod
OpenMod .NET Plugin Framework
|
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 22,549 | 7/1/2020 |
updated nuget dependencies