I have a third party library(Assembly) used in the project. I want to know if there is a way to print out all its method entry information?
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.
You will most likely need to use reflection if you want to do this programmatically: MSDN
Otherwise, you could try disassembling the library with Red Gate Reflector.
Edit:
Reflection does not allow you to change anything about the methods. If you are wanting to print out the methods as you originally asked, you can retrieve:
The only way you would be able to change (or
override) a method is if the method is defined asvirtual. You can determine if a method is overrideable through reflection as well: MethodBase.IsVirtual.