Restricting a generic to things that can be null

后端 未结 0 1302
天命终不由人
天命终不由人 2021-02-11 20:52

I\'d like to restrict a generic I\'m coding to anything that can be null. That\'s basically any class + System.Nullable (e.g. int? and suc

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