EnumsDataType in switch

  • 16
  • 2

I'd like to use my custom EnumsDataType in switch statement.
Switch itself accepts EnumsDataType, but how do I write "case" statement?

Having StatisticType as an enum, StatisticType.enumname is not allowed.