Can you For Each an Enumerator?
I'm not sure if this is possible or not thats why I am asking my enumerator
Code:
enum times
{
time_1
time_2
time_3
time_4
time_5
time_6
time_7
time_8
time_9
}
Is there some way I could enumerate through each value of the enumerator :S if that makes any since at all.
eg.
Code:
foreach evalue in times
{
if (evalue == time_6) dosomething();
}
Re: Can you For Each an Enumerator?
Quote:
Originally posted by Tewl
Is there some way I could enumerate through each value of the enumerator :S if that makes any since at all.
That's what arrays are for :)