How can I Find out what BCL types a custom type is using its method?
<p>If I have a class, eg T1, and I want to know what classes in the BCL it is using, how could I do this?</p>

<p>I came up with this:</p>

<pre><code> T1.GetType().GetMethods().Where(x =&gt; x.DeclaringType.Namespace == "System");
</code></pre>

<p>But this will get all methods in my custom type, but I want to look inside each Method, so I was hoping I could do something like:</p>

<p>T1.GetType().GetMethods().BodyTypesUsed; to check if my method uses a type like Streamwriter.</p>

<p>How could I achieve this?</p>
