Can't cast an `Enum` value to `int` in a generic method

前端 未结 0 1202
盖世英雄少女心
盖世英雄少女心 2020-12-07 05:41

If I have an enum...

public enum Frequency {
  OneOff = 0,
  Monthly = 1,
  Quarterly = 2,
  Annually = 3
}

...then I can do som

相关标签:
回答
  • 消灭零回复
提交回复
热议问题