Answers for "enum each"

6

enum foreach

foreach (Suit suit in (Suit[]) Enum.GetValues(typeof(Suit)))
{
}
Posted by: Guest on March-23-2020
0

foreach enum

foreach (MyEnum enumValue in (MyEnum[]) Enum.GetValues(typeof(MyEnum)))
{
}
Posted by: Guest on November-10-2020

Browse Popular Code Answers by Language