[IronPython] overriding methods from C# classes

Curt Hagenlocher curt at hagenlocher.org
Fri Jul 9 19:48:14 CEST 2010

On Fri, Jul 9, 2010 at 10:43 AM, Marcin Krol <mrkafk at gmail.com> wrote:

> Bc when I changed declaration of the method to "protected virtual" in the
> Form1.cs, the inherited class calls my Ipython method all right - that looks
> like overriding to me, at least when looking at it from the outside and not
> looking "under covers" what's happening.

Yes. It's universally true in the CLR that you can't override a function in
a derived class unless the function was marked as virtual in the base class.
IronPython is no different than C# in this regard.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100709/371f8084/attachment.html>

More information about the Ironpython-users mailing list