Are there any settings in visual studio that allow the compiler to generate an error when a method or property hides a method or property from the base class without using the “new” keyword?
the compiler is currently generating a warning
class A
{
void F(){ ... }
}
class B : A
{
void F(){ ... }
}
thank
source
share