Is there a way to get all types used inside C# method?
For example,
public int foo(string str) { Bar bar = new Bar(); string x = \"test\";
With reflection you can get the method. This returns a MethodInfo object, and with this object you cannot get the types which are used in the method. So I think the answer is that you cannot get this native in C#.