Skip to content

System.InvalidCastException: 'Unable to cast object of type 'System.Reflection.RuntimeMethodInfo' to type 'Mono.Cecil.IMethodSignature'.' #829

Answered by jbevain
HPXCoder asked this question in Q&A
Discussion options

You must be logged in to vote

This next error you're seeing in different.

It means you're using a MethodReference that was created in one module inside another.

You need to make sure all the references you use is one module has been properly created through ImportReference into the module you're modifying.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@HPXCoder
Comment options

@HPXCoder
Comment options

Comment options

You must be logged in to vote
1 reply
@HPXCoder
Comment options

Answer selected by HPXCoder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #828 on February 02, 2022 00:15.