0

Say that I'm making a plugin that will check each other assembly currently in use for a method. How exactly would I go about doing this? I've tried a bit with the whole System.Reflection.MethodInfo but I do not believe this is what I'm looking for. I'm fully aware that this may not even be possible, so let me know if so! Thanks.

EDIT: Okay, so specifically I need to get the parameter being passed to the method when it's called

  • Can you try rewording your title and/or your question? I can't quite understand what you are asking. Are you trying to hook a call (for example, your code would either execute or be notified every time some method (of another class, likely in another assembly) is executed. You should also show some code in your question. For example, showing what you want your code to do, and what that "other method" looks like and what it's call site looks like – Flydog57 Feb 12 '19 at 17:20
  • I think you need to elaborate further, to get the parameter(s) passed into a method, just place break-point in the method. – mxmissile Feb 12 '19 at 18:05

1 Answers1

1

Profiling will give you stats (counts, times, etc) on the various calls your app makes. There are many profilers available. Here and Here

I like dotTrace. Its not free but it has a 10-day trial.

Christo
  • 292
  • 1
  • 7
  • While this is an excellent answer, I have since realized my question is rather vague, and edited it to better represent what I'm looking for – LordOfKhaos Feb 12 '19 at 18:01