Answers for "loop through all the values of an enum ?"

6

enum foreach

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

Code answers related to "loop through all the values of an enum ?"

Browse Popular Code Answers by Language