Get C# type from file name
<p>I have a bunch of files in a directory:</p>

<p><b>Class1.ascx</b> : contains class Class1<br>
<b>Class2.ascx</b> : contains class Class2</p>

<p>I have a list of the file names, and I want to take each filename and identify the corresponding class.</p>

<pre><code>foreach(var fileName in listOfFileNames)
{
   ...
   Type t = MagicMethod(fileName)
   ...
}
</code></pre>

<p>Anyone know what MagicMethod would look like or if it is even possible to do?</p>
