How can you enumerate an enum in C#?
enum
E.g. the following code does not compile:
public enum Suit {
I know it is a bit messy, but if you are fan of one-liners, here is one:
((Suit[])Enum.GetValues(typeof(Suit))).ToList().ForEach(i => DoSomething(i));