c# - 如何在 ASP.Net 标记中定义 c# 版本
问题描述
我想知道是否可以在 5.0 版之后发布的 ASP.Net 标记(*.aspx 和 *.ascx 文件)中使用 c# 语言功能。是否有可能在 aspx 页面的标题区域中声明标记语言版本?
我希望我们使用空传播运算符并收到以下错误:
Feature 'null propagating operator' is not available in C# 5. Please use language version 6 or greater.
解决方案
推荐阅读
- javascript - 找不到Angular 5 ngsw-worker js文件
- reactjs - 返回主页无法在 React js 中滚动顶部
- sql - 查询计算学生的总平均数
- java - 在客户端应用程序(JAVA)上安全地存储 JWT
- html - Flex CSS 中的静态元素
- azure - Azure Web API 授权由 Azure AD 和 Azure AD B2C 生成的令牌
- php - 单击登录后如何重定向到下一页并检查用户凭据是否正确
- amazon-web-services - DynamoDB:使用 Spring Data 按全局二级索引查找项目
- header - wordpress 没有显示固定的标题,但在移动 10% 后被忽略
- javascript - 在 Heroku 连接 React 前端和 Node.js 后端