Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

2574 StackOverflow Exception On Super Method Call Fix#2628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
rmadsen-ks wants to merge3 commits intopythonnet:master
base:master
Choose a base branch
Loading
fromrmadsen-ks:2574-StackOverFlowExceptionOnSuperMethodCallFix
Open
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
minor cleanup
  • Loading branch information
@rmadsen-ks@filmor
rmadsen-ks authored andfilmor committedDec 8, 2025
commit98a740ec264b708584a8ff7cb9821e9a0934045c
6 changes: 2 additions & 4 deletionssrc/runtime/Types/ClassDerived.cs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -253,7 +253,7 @@ internal static Type CreateDerivedType(string name,


// override the virtual method to call out to the python method, if there is one.
AddVirtualMethod(method,baseType,typeBuilder, isDeclared);
AddVirtualMethod(method, typeBuilder);
}

// Add any additional methods and properties explicitly exposed from Python.
Expand DownExpand Up@@ -384,10 +384,8 @@ private static void AddConstructor(ConstructorInfo ctor, Type baseType, TypeBuil
/// and calls it, otherwise fall back to the base class method.
/// </summary>
/// <param name="method">virtual method to be overridden</param>
/// <param name="baseType">Python callable object</param>
/// <param name="typeBuilder">TypeBuilder for the new type the method is to be added to</param>
/// <param name="isDeclared"></param>
private static void AddVirtualMethod(MethodInfo method, Type baseType, TypeBuilder typeBuilder, bool isDeclared)
private static void AddVirtualMethod(MethodInfo method, TypeBuilder typeBuilder)
{
ParameterInfo[] parameters = method.GetParameters();
Type[] parameterTypes = (from param in parameters select param.ParameterType).ToArray();
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp