Re: Accessing members which have been hidden by "new"

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Wed, 23 Apr 2008 04:54:49 -0700, Robert Fuchs <nix@xxxxxx> wrote:

Any idea?

Well, I admit...my previous reply made an assumption, which Jeroen pointed out was wrong. That is, I assumed that you had actually tried using the "base." notation and that had failed. Obviously you hadn't, because it does work and as near as I can tell does just what you want it to.

No, "base." does not what I want, because the immediate base class has no such method.

See Ben's reply. As Jeroen already pointed out, and now Ben and I both have as well, "base." will provide access to the nearest base implementation. It doesn't have to be in the immediately-inherited class.

Pete
.