代码:
public class MtApsApprovalStatusDomainInput
{
public List<MSExtended<UStatus>> UStatus { get; set; }
}
public class UStatus : StatusBase<UStatusValues>
{
}
public class MSExtended<T> : MSBase<T>
{
public bool IsRecent { get; set; }
}
错误抛出以下行:
UStatus recentUStatus = MtApsStatusDomainInput.UStatus.Where(x => x.IsRecent).FirstOrDefault();
错误详情:
无法将类型“Dt.Models.MtAps.MSExtended”隐式转换为“Dt.Models.UStatus”