Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
❔ As loop value increments, increment variable name - C#
C
C#
•
3y ago
•
5 replies
jakub
❔ As loop value increments, increment variable name
I have a loop to insert values into 5 objects of employees named employee1
,employee2
.
.
.
Is there a way I can make the loop update the number in the variable name after each iteration
?
I am very new to C
# so I am looking for any sort of help
.
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
❔ variable refusing to increment
C
C# / help
3y ago
Class with same name as namespace
C
C# / help
2y ago
simple for loop variable [Answered]
C
C# / help
4y ago