C#C
C#13mo ago
Cykotech

Iterate through Enums

If I want to make an action iterate through an enum everytime it's taken, obviously I would just use object++; but what do I except when I reach the max value and want it to return back to the min value? And if a simple increment doesn't work how would I loop through the enum as such?
Was this page helpful?