Cannotconvertvartypetolistobject本问题已经有最佳答案,请猛点这里访问。我将返回的项目存储为var类型,然后尝试将其与模型类类型的列表对象绑定。但是在这样做的同时,它给出了一个错误消息,cannotimplicitlyconverttypeSystem.collections.generic.listtoSystem.Collections.Generic.List请帮我解决这个问题。1234567891011publicIEnumerableEmpModel>GetEmpDetailsById(intid){ varEmpList=(fromainEmpDet