简体   繁体   English

如何关闭“如果打算隐藏则使用新关键字”警告?

[英]How do I turn off the warning “use the new keyword if hiding was intended”?

Ref: "Use the new keyword if hiding was intended" warning 参考: “如果打算隐藏则使用new关键字”警告

This time, the warning needs to go away without editing file to add the new keyword. 这次,警告需要消失而无需编辑文件来添加新关键字。

Why? 为什么? Generated derived class. 生成派生类。

只需在要禁用警告的文件顶部添加#pragma warning disable 108

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 “如果有意隐藏,请使用新关键字”警告 - "Use the new keyword if hiding was intended" warning 按键警告-如果打算隐藏,请使用新关键字 - Keypress warning - use the new keyword if hiding was intended 如果打算隐藏,请使用新关键字 - Use new keyword if hiding was intended VS2015关于虚拟方法和事件命名的警告(如果打算隐藏,请使用new关键字) - VS2015 warning about naming of virtual method and event (Use the new keyword if hiding was intended) 当我们可以直接创建ClassA对象并调用classA的printA方法时,为什么要隐藏时需要使用new关键字 - Why we need to use new keyword if hiding is intended, when we can directly create ClassA object and call printA method of classA 什么是Fiddler,如何关闭它? - What is Fiddler and how do I turn it off? 如何修复统一警告:您正在尝试使用“新”关键字创建 MonoBehavior? - How do I fix the unity warning: You are trying to create a MonoBehavior using the 'new' keyword? pInvokeStackImbalance MDA警告以及如何关闭或修复它 - pInvokeStackImbalance MDA Warning and how to turn it off or fix it 如何关闭大写锁定键 - How do i Turn OFF the Caps lock key 如何关闭SSRS中的值验证? - How do I turn off value validation in SSRS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM