Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with NonGeneric.Emit.Call #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Issues with NonGeneric.Emit.Call #3

wants to merge 3 commits into from

Conversation

arlm
Copy link
Owner

@arlm arlm commented Jun 4, 2019

Hi,

The function Sigil.NonGeneric.Emit.Call ends up calling this overload of Emit.Call:
public Emit Call(MethodInfo method, Type[] arglist = null)

That overload is for already builded types and, in fact, the inner MethodBuilder object does not seems to like the call to GetParameters() (NotSupportedException -> Type has not beed created).

Is it possible to fix this calling the other overload of Emit.Call?

Thanks!

@arlm arlm force-pushed the master branch 2 times, most recently from e57a954 to 51b5efb Compare July 5, 2019 14:59
arlm added a commit that referenced this pull request Jul 10, 2019
…eated from the non-generic Emit.

Closes Pull-Request #3

Co-authored-by: chaplin89 <[email protected]>
@arlm
Copy link
Owner Author

arlm commented Jul 12, 2019

Closed on referenced commit. @chaplin89, can you please add tests for this?

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.

2 participants