There is no implicit reference conversion from 'System.Collections.Generic.List' to 'T'

前端 未结 3 845
孤街浪徒
孤街浪徒 2021-01-03 21:25
class Class1
{
    public virtual void Update(T entity)
    {
        Update(new List() { entity }); //It\'s failed
    }

    public virtual void          


        
3条回答
  •  庸人自扰
    2021-01-03 21:41

    Constraints are not part of the signature, Eric Lippert has a great article about this topic.

提交回复
热议问题