Last post Apr 03, 2018 01:20 PM by JohnStus
Apr 02, 2018 03:07 PM|JohnStus|LINK
This may be stupid question but why intelisense doesn't suggest method names available when derived class is hiding members with "new" keyword?
public class BaseNew
public virtual string DoSomething()
public class DerivedNew : BaseNew
public new string DoSomething()
so as soon as I type "public new" i would expect DoSomething to appear as a suggestion..
Apr 03, 2018 08:44 AM|Eric Du|LINK
According to your description and code, i think you only declare the new method(DoSomething) in the class(DerivedNew), maybe the following Scene is suit for your needs, please check:
Apr 03, 2018 01:20 PM|JohnStus|LINK
Cannot access it