© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
C
C#
•
3y ago
•
27 replies
__dil__
❔ Iterate over a range
What
's the equivalent of this
(rust
)
for
i
in
0
..
10
{
/* ...do stuff... */
}
for
i
in
0
..
10
{
/* ...do stuff... */
}
in C
#
? So basically
, how to loop over a range
?
I
'm not a big fan of C
-style loops
I find them very noisy and cumbersome
.
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Iterate through Enums
C
C# / help
15mo ago
✅ Iterate through a genereic type list
C
C# / help
3y ago
Iterate over AD users and find some properties (EmployeeNumber, ExtensionAttributes, manager,..)
C
C# / help
4y ago
How to iterate all classes in a name space ?
C
C# / help
2y ago