C# ASP.NET Core - Generic method to return property of type T

前端 未结 0 949
野趣味
野趣味 2021-02-12 17:03

I want to return a property of Type T passed to my generic function but I cannot find a way to accomplish it. I would like to do something like this (that would actually compile

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