Skip to content
Discussion options

You must be logged in to vote

In c# 9.0 you can reference https://www.nuget.org/packages/RangeForeach/0.0.1 which uses extension foreach, allowing you to do:

foreach(var i in 1..10)
{
 do some thing with i
}

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@jnm2
Comment options

jnm2 Sep 25, 2020
Collaborator

@sgf
Comment options

@sgf
Comment options

@DavidArno
Comment options

@JustNrik
Comment options

Answer selected by sgf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants