title: How to determine which methods are called in a method?
body: <p>I'd like to list all the methods that are called from a specific method. E.g. if I have the following code:</p>
  
  <pre><code>public void test1() {
  
     test2();
  
  
     test3();
  }
  </code></pre>
  
  <p>The list should contain test2() and test3(). It would be great if methods of the same class but also methods of another class could be listed.</p>
  
  <p>Additionaly I'd like to find a way to detect which fields are used of a method:</p>
  
  <pre><code>public class A {
  
     private String test1 = "";
     private String test2 = "";
  
     public void test() {
        Console.WriteLine(test1);
     }
  
  }
  </code></pre>
  
  <p>Should therefore list test1.</p>
  
  <p>I tried this using Mono.Cecil, but unfortunately I couldn't find lot of documentation about the project. So does anybody know how to do that?</p>
  
  <p>Edit: I'd like to do it with Mono.Cecil because over its API I can directly use the results in my application. If I use built in tools in Visual Studio or similar, it's quite difficult to furhter process the results.</p>