Checking type of parameter
<p>I would like to check, which type a parameter of a method has, in order to give 
the variable I determine inside the method with the wished type:</p>

<pre><code>public static Object getFileContent(String filename, Type returntype)
{
     if (returntype.GetType().Equals(string))
     {
       // do something
     }
}
</code></pre>

<p>This doesn't work. What could I do, to check if returntype is <code>string</code> or <code>List&lt;string&gt;</code>?</p>
