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

1776 Generic Virtual Method Causes Invalid Program: Fix + test#2026

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

Merged

Conversation

rmadsen-ks
Copy link
Contributor

  • If a method is virtual AND generic, it cannot be overridden by the python class. Hence the method call is deferred to the base class.
  • Added a unit test which verifies this behavior is now working.

Close#1776

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Ensure you have signed the.NET Foundation CLA
  • Add yourself toAUTHORS
  • Updated theCHANGELOG

- If a method is virtual AND generic, it cannot be overridden by the python class. Hence the method call is deferred to the base class.- Added a unit test which verifies this behavior is now working.
@lostmsulostmsu merged commit1729698 intopythonnet:masterNov 30, 2022
elan-ajain pushed a commit to elancapital/pythonnet that referenced this pull requestFeb 17, 2023
…nnet#2026)- If a method is virtual AND generic, it cannot be overridden by the python class. Hence the method call is deferred to the base class.- Added a unit test which verifies this behavior is now working.NOTE: The test causes crash when run from `PythonTestRunner`. Seepythonnet#2035
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@lostmsulostmsulostmsu left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Generic virtual method in baseclass causes InvalidProgramException
2 participants
@rmadsen-ks@lostmsu

[8]ページ先頭

©2009-2025 Movatter.jp