Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to do this with LINQ? - C#
C
C#
•
3y ago
•
50 replies
Dyad
How to do this with LINQ?
`
`
`
var values
= new
[
]
{ 1
, 2
, 3
, 4
, 5
}
int winner
;
for
(int i
= 0
; i
< values
.Count
; i
+
+
)
{
var value
= values
[i
]
;
var r
= value
* 2
;
if
(r
> 7
)
{
winner
= r
;
break
;
}
}
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
Next page
Similar Threads
❔ how to simplify logic with linq?
C
C# / help
3y ago
❔ How to correctly write this linq query?
C
C# / help
4y ago
❔ How bad is this Linq code?
C
C# / help
4y ago
✅ How to group by tautology with LINQ?
C
C# / help
3y ago