Determining all types used by a certain type in c# using reflection
===

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?