Board index » DotNet » How to use the base keyword to call a base class method (not a constructor)

How to use the base keyword to call a base class method (not a constructor)

DotNet150
Hello,



I have read that the base keyword can be used not only to control a base

class instantiation (thus calling one of the base class constructors) but

also to access any other public or protected method in the parent class ...

I have search all over for an example of how to do this but have failed.

What I was wondering is about the syntax necessary to make such a call .....

Thx..



Bob Rock


-
 

Re:How to use the base keyword to call a base class method (not a constructor)



"Greg Ewing [MVP]" <gewing@_NO_SPAM_gewing.com>wrote in message

Quote
Bob, did you check out MSDN? There's an example up there. Is there

something that this sample doesn't cover?





http://msdn.microsoft.com/library/default.asp?url" rel="nofollow" target="_blank">msdn.microsoft.com/library/default.asp=/library/en-us/csref/html/

vclrfbasepg.asp

Quote


--

Greg Ewing [MVP]

www.citidc.com">www.citidc.com





Thank you Greg, I searched on my numerous books and also on the msdn but I

was expecting a diffente syntax that is why I did not find it .... "base"

seems to be used pretty much like "this" but it provides access to the

parent class instead of the instance object.



Bob Rock







-