How to initialize a non-nullable generic type property (or field) (c# 8 or 9)

前端 未结 0 1967
醉话见心
醉话见心 2020-12-16 08:21

I\'m converting some older code to c# 8 and 9 with nullable enabled. I\'ve run into some trouble with generics. Here\'s an example. The older class has an unconstrained type

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