c# for each value in enum code example Example: enum foreach foreach (Suit suit in (Suit[]) Enum.GetValues(typeof(Suit))) { }