On Nov 1, 11:10 pm, "Jb Evain" <[EMAIL PROTECTED]> wrote:
> Hey Ivan,

> > If a call Instruction's Operand is a GenericInstanceMethod how do you
> > find the MethodDefinition of what it's calling?

> Just call GetOriginalMethod () on it.

I'm after:
        -> System.Void CecilTest.GenClass`1::GenMethod(U)
I get:
        -> System.Void
CecilTest.GenClass`1<GenType>::GenMethod<System.Object>(!!0)
GetOriginalMethod gives:
        -> System.Void CecilTest.GenClass`1<GenType>::GenMethod(!!0)


I want to find "GenMethod(U)"... "GenMethod<System.Object>(!!0)" nor
"GenMethod(!!0)" help me do that.
TypeDefinition.Methods.GetMethod() can't use "GenMethod(!!0)" to find
"GenMethod(U)". The parameter "!!0" won't match against "U".

Any advice?

Regards,
Ivan


--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to