if I have
class A { public void DoStuff() { B b; } } struct B {} struct C {} and I have typeof(A),
I would like to get a list of all types used by A. in this case it would be typeof(B) and not typeof(C).
Is there a nice way to do this with reflection?
AviaType.GetFields,Type.GetProperties(orType.GetMembers) and so on. But figuring out what types are used locally within a method? Not so sure.