“/”应用程序中的服务器错误。

编译错误

说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。

编译器错误消息: CS0019: Operator '??' cannot be applied to operands of type 'SeriesV2DTO' and 'SeriesDTO'

源错误:


行 2:  @{
行 3:      var tempbrand = Model.CurrentBrand ?? new EVLook.DTO.Vehicle.BrandDTO();
行 4:      var tempseries = Model.CurrentSeries ?? new EVLook.DTO.Vehicle.SeriesDTO();
行 5:  }
行 6:  @section HeaderCssJs

源文件: C:\wwwroot\evlookweb\Views\dealer\ask.cshtml    行: 4






版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4465.0