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

  • Thread starter Thread starter Bob Rock
  • Start date Start date
B

Bob Rock

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
 
Greg Ewing said:
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=/library/en-us/csref/html/
vclrfbasepg.asp

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
 
Back
Top