Is there a way to analyze that a function calls other functions or uses which variables in C#? For instance,
class Test
{
public int a;
public void function1()
{
a = 1;
function2();
}
public void function1()
{
function2();
}
}
So how to know the function1
uses a
and calls the function2
?