It is possible to write constructions like this:
enum Number {
One = 1,
Two = 2,
Three = 3,
Four = 4,
}
but for what purpose? I can't find any method to get the value of an enum variant.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…