I want to work with MethodInfo, is there a way to cast Cecil’s MethodDefinition to MethodInfo?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No – the two structures, while similar in content, have almost nothing to do with each other.
To quote from this thread on Google Groups:
That thread gives some ideas on how to get around this fact, but it also correctly states that in most cases the correct answer is to just use the CLR’s Reflection system if that is what you really want.