Cast enum-value in generic method to int

前端 未结 0 1893
生来不讨喜
生来不讨喜 2021-01-04 21:00

I have created a generic method. The typeparameter could be any enum:

    private AdditionalFields GetAdditionalFields(params T[] fields) where T: st         


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