Skip to content

Conversation

@daxian-dbw
Copy link
Member

@daxian-dbw daxian-dbw commented Sep 14, 2018

PR Summary

Fix #7786

When embedding signatures of the overload methods into a PSMethod, we don't handle ByRef-like types -- overload methods with ByRef-like type parameters will be marked as 'NonBindable' and get ignored in the conversion from PSMethod to Delegate. This PR fix a bug that causes exception to be thrown when dealing with a ByRef-like type being used by a ref or out parameter.

/cc @SeeminglyScience

PR Checklist

@daxian-dbw daxian-dbw self-assigned this Sep 17, 2018
@daxian-dbw daxian-dbw merged commit 285e471 into PowerShell:master Sep 17, 2018
@daxian-dbw daxian-dbw deleted the bugfix branch September 17, 2018 19:46
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.

DotNetAdapter fails to create PSMethod with a ByRef parameter of a ref struct

2 participants