How can you enumerate an enum in C#?
enum
E.g. the following code does not compile:
public enum Suit {
Use Cast:
Cast
var suits = Enum.GetValues(typeof(Suit)).Cast();
There you go, IEnumerable.
IEnumerable