You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If OnUseNumber was public virtual, then this could probably be fixed by adding a __namespace__ attribute to the Python class, as in #567 (comment).
However, based on this discussion, overriding protected virtual methods is not currently supported. I think this is because of the use of the zero-argument form of GetMethodshere, which only returns public methods.
This particularly affects Winforms, which has a lot of protected virtual methods.
Based on https://stackoverflow.com/questions/75514392 by IkeStarnes.
Environment
Details
Given the following C# code for the .NET class:
I've tried the following Python code, but the OnUseNumber is never called:
The text was updated successfully, but these errors were encountered: