Skip to content

YairHalberstadt/RangeForeach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package allows you to foreach over a range using C# 9.0's extension GetEnumerator.

The loop is inclusive start, exclusive end. Therefore foreach(var i in 1..3) Console.Write(i + ","); will print 1,2, not 1,2,3.

NuGet

https://www.nuget.org/packages/RangeForeach/0.0.1

  • nuget package manager: Install-Package RangeForeach -Version 0.0.1
  • .net CLI: dotnet add package RangeForeach --version 0.0.1
  • package reference <PackageReference Include="RangeForeach" Version="0.0.1" />

About

Power to the people! foreach over those ranges!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages