The best overloaded method match for #106

Closed
opened 2012-07-14 11:25:31 -05:00 by mrlazy · 1 comment
mrlazy commented 2012-07-14 11:25:31 -05:00 (Migrated from github.com)

MethodReference MR = AsmDef.MainModule.Import(Params.asmReflection.GetModules()[0].ResolveMethod(TokenOfOriginalCall);); //Error

Error 5 The best overloaded method match for 'Mono.Cecil.ModuleDefinition.Import(Mono.Cecil.TypeReference)' has some invalid arguments

MethodReference MR = AsmDef.MainModule.Import(Params.asmReflection.GetModules()[0].ResolveMethod(TokenOfOriginalCall);); //Error Error 5 The best overloaded method match for 'Mono.Cecil.ModuleDefinition.Import(Mono.Cecil.TypeReference)' has some invalid arguments
jbevain commented 2012-07-14 12:18:34 -05:00 (Migrated from github.com)

This is an issue on your side, you have to cast the result of ResolveToken to something meaningful, like MethodBase in your case.

This is an issue on your side, you have to cast the result of ResolveToken to something meaningful, like MethodBase in your case.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-jbevain/cecil#106
No description provided.