A Alexander Vasilevsky Jan 21, 2008 #1 How to call a virtual function ancestor class in C#? http://www.alvas.net - Audio tools for C# and VB.Net developers
How to call a virtual function ancestor class in C#? http://www.alvas.net - Audio tools for C# and VB.Net developers
N Nicholas Paldino [.NET/C# MVP] Jan 21, 2008 #2 Alexander, You can only call the implementation in the base, no further up in the hierarchy. You would use the base keyword, like so: base.VirtualFunction(); VirtualFunction is the virtual function name to call the base class implementation of.
Alexander, You can only call the implementation in the base, no further up in the hierarchy. You would use the base keyword, like so: base.VirtualFunction(); VirtualFunction is the virtual function name to call the base class implementation of.
I Ignacio Machin \( .NET/ C# MVP \) Jan 21, 2008 #3 Hi, You can use base.YourMethod(); note that you can ONLY call the one inmediately above the class, there is no way to call the "grandparet" method
Hi, You can use base.YourMethod(); note that you can ONLY call the one inmediately above the class, there is no way to call the "grandparet" method