Is there a way to list all the calls and hard-coded string parameters of a method from a .Net assembly?

For example, suppose in my assembly in the namespace A, class B, there is an instance method with the following signature:

void Test(string someString, int someOtherParm, string someOtherString );

This method is called several times from several assembly locations. I would like to be able to create a list of all calls to this method and the value someString / someOtherString (provided that they are hard-coded).

In other words, I like to retrieve a list of calls, for example, the example below, if they are found somewhere in the assembly:

Test("some text", 8, "some other text"); 

Thanks in advance, R.

+3
source share
1 answer

Cecil, API IL. " ", , .

+1

Source: https://habr.com/ru/post/1776740/


All Articles