FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

method overloading fix for enum argument by den-run-ai · Pull Request #176 · pythonnet/pythonnet · GitHub

Repository navigation

method overloading fix for enum argument - #176

Merged
tonyroberts merged 1 commit into
pythonnet:developfrom
den-run-ai:patch-8
Mar 17, 2016
Merged

tonyroberts merged 1 commit into
pythonnet:developfrom
den-run-ai:patch-8

Conversation

Copy link
Copy Markdown
Contributor

No description provided.

TypeCode argtypecode = Type.GetTypeCode(pi[n].ParameterType);
Type typearg = Type.GetType("System." + argtypecode.ToString());
if (typearg == clrtype) {
typematch = true;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Would comparing the type code of the parameter type and the clrtype be more appropriate here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@tonyroberts done! thanks for pointing out cleaner solution. I also added this "regression" test.

tonyroberts added a commit that referenced this pull request Mar 17, 2016
method overloading fix for enum argument
tonyroberts merged commit b147b16 into pythonnet:develop Mar 17, 2016

Copy link
Copy Markdown
Contributor

@denfromufa great, thanks.

Copy link
Copy Markdown
Contributor

a "dev2" release this week-end ?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL