title: c# unknown input parameter type?
body: <p>I have a generic function <code>static Log&lt;T&gt;(T Log)</code>. I would like to check type of <code>T</code> and decide what to do next. </p>
  
  <p>This is what I got so far:</p>
  
  <pre><code>public static void Log&lt;T&gt;(T log)
  {
      switch (typeof(log))
      { ... }
  }
  </code></pre>
  
  <p>What am I doing wrong? My error is that typeof(log) doesnt work.</p>