Skip to content

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

@den-run-ai

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.

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.

@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
tonyroberts merged commit b147b16 into pythonnet:develop Mar 17, 2016
@tonyroberts

Copy link
Copy Markdown
Contributor

@denfromufa great, thanks.

@stonebig

Copy link
Copy Markdown
Contributor

a "dev2" release this week-end ?

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