How to resolve generic type with dynamic parameter?

前端 未结 0 1992
别跟我提以往
别跟我提以往 2021-01-25 10:31

I have a generic class like

class EntityDao where T: class
{
    void Update(T entity)
    {
       //Update entity to somewhere.
    }
}
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题