NuGet Gallery Feed for Contrib.Bcl.RangesThis 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]); // worldhttps://www.nuget.org/packages/Contrib.Bcl.Ranges/2020-07-01T16:14:38Zhttps://www.nuget.org/packages/Contrib.Bcl.Ranges/1.0.0Contrib.Bcl.Ranges 1.0.02020-07-01T16:12:37Z2020-07-01T16:14:38ZDmitryEkimovhttps://www.nuget.org/profiles/DmitryEkimovslang25https://www.nuget.org/profiles/slang25This 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