How can you enumerate an enum in C#?
enum
E.g. the following code does not compile:
public enum Suit {
foreach (Suit suit in Enum.GetValues(typeof(Suit))) { }
(The current accepted answer has a cast that I don't think is needed (although I may be wrong).)