Get filename(s) where type is defined in asp.net website
<p>If I define a class in a file</p>

<pre><code>~/App_Code/Extensions/MyExtension/MyClass.cs
</code></pre>

<p>Is it possible to retrieve the filename by type (or 'MyExtension' part of it) without hard coding it?</p>

<pre><code>var extTypes = getExtensions();
foreach(var extType in extTypes)
{
    // something like
    var files = extType.GetSourceFiles();

    //or maybe asp.net keeps track of types in the dynamically created assembly
    var files2 = SomeAspNetClass.WhereDidThisTypeComeFrom(extType);
}
</code></pre>

<p>Or inject it to the class in any way?</p>

<pre><code>[ThisFile]
public class MyClass : MyBase
{
    private string _file = &lt;thisfile&gt;;
}
</code></pre>
