[IronPython] overriding methods from C# classes

Marcin Krol mrkafk at gmail.com
Fri Jul 9 20:11:01 CEST 2010


Curt Hagenlocher wrote:
> 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.

One thing that would be *nice* for C# noobs like me would be throwing an 
exception in IPY when a method in a base C# class assembly isn't virtual.

-- 

Regards,
mk

--
Premature optimization is the root of all fun.



More information about the Ironpython-users mailing list