@Julio Bello , Welcome to Microsoft Q&A, If you want to keep both to co-exist, you have to use the new keyword in the DerivedClass Method.
Am I intentionally "hiding" the base class method?
Yes, based on the Microsoft doc Compiler Warning (level 2) CS0108, 'member1' hides inherited member 'member2'. Use the new keyword if hiding was intended.
Do I want to use the new keyword?
Yes, we need to use the keyword new to solve the warning error, like the following code:
public class DerivedClass : BaseClass
{
public new void Method()
{
base.Method();
// Perform operations on its properties…
}
}
Hope this could help you.
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.