如果是不支持的类型,则编译时给出如下错误:

A switch expression or case label must be a bool, char, string, integral, enum, or corresponding nullable type

从错误中可以得知支持的类型。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-07-20
猜你喜欢
  • 2021-06-05
  • 2022-12-23
  • 2021-11-25
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
相关资源
相似解决方案