© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•17mo ago•
13 replies
mack

✅ enumeration help

can you call on the “index” of an entry in an enumeration? like say theres 3 options,
red
red
,
blue
blue
,
green
green
, and i have an array with
1
1
,
2
2
,
3
3
.

if a random int is used to select between the array, can i also use that same random int to call upon the corresponding enumeration? i.e.
red
red
being called at the same time/in a similar way as
1
1
,
blue
blue
and
2
2
, etc

sorry if the question doesnt make sense, i can rephrase
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Collection was modified. Enumeration operation may not execute.
C#CC# / help
15mo ago
Collection was modified enumeration operation may not execute
C#CC# / help
4y ago