By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,327 Members | 1,096 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,327 IT Pros & Developers. It's quick & easy.

Overriding base class events

P: n/a
Is there a way to override an event that is inherted from a base class so it
won't be seen in the derived class?

Also is there a way to override an override method that is inherted frmo a
base class so it won't be seen in the derived class

I tried shadows but it's not working like I described.
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* GMan <GM**@nomail.com> scripsit:
Is there a way to override an event that is inherted from a base class so it
won't be seen in the derived class?
What do you mean by "won't be seen"?

If you want to prevent the event 'Foo' from being raised, override the
'OnFoo' method and do not call the base class' implementation.
Also is there a way to override an override method that is inherted frmo a
base class so it won't be seen in the derived class


For what reason do you want to do that?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.