Show/Hide Toolbars

XSharp

'member1' hides inherited member 'member2'. Use the new keyword if hiding was intended.

 

please check the compiler option /VO3 Virtual Instance Methods or add the keyword virtual to your methods.

Bby default METHODs and PROPERTIEs in .Net are not VIRTUAL, meaning that you cannot override a method of a base class by redefining it in a child class, like we do in VO, this instead creates a completely new method, from the CLR's point of view. In order to allow a (base) method to be overwritten , you must explicitly mark it with the VIRTUAL keyword. Or, you van simply enable the “All instance methods virtual” project option, which tells the compiler to make all methods VIRTUAL by default, for compatibility with VO. Both ways should get rid of the warning.