[英]private protected does not work
I have a method: 我有一个方法:
private protected string SendRequest(BaseRequest request, string httpMethod, bool isPublicRequest) { ... }
BaseRequest is internal, that's why I want to use the new private protected combination. BaseRequest是内部的,这就是为什么我要使用新的受保护的私有组合。
Unfortunately I still get an error: 不幸的是,我仍然得到一个错误:
"Modifier 'protected' cannot be combined with 'private'"
“修饰语'受保护'不能与'私人'结合使用”
I upgraded VS to 15.5.2 so why does it not know the new C# Features? 我将VS升级到15.5.2,为什么它不知道新的C#功能? Clean solution didn't help by the way.
顺便提一下,干净的解决方案没有帮助。
This feature requires version 7.2. 此功能需要版本7.2。
to accomplish this: 要做到这一点:
Properties
Properties
Build
Build
Also, as @Sir Rufo has mentioned in the comments section you can set this option for each configuration. 另外,正如@Sir Rufo在评论部分中提到的那样,您可以为每种配置设置此选项。 Therefore changing it for all configurations would be the better option.
因此,为所有配置更改它都是更好的选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.