title: Detect ActionResult type in ActionFilter?
body: <p>I have a global <code>ActionFilter</code> executing on each <code>ActionResult</code>. Is it possible to detect the ActionResult type (such as a <code>JsonResult</code> vs. an <code>ActionResult</code>) inside the <code>ActionFilter</code>?</p>
  
  <p>For instance, I want the <code>ActionFilter</code> to immediately exit here:</p>
  
  <pre><code>public JsonResult someAjaxAction()
  {
  }
  </code></pre>
  
  <p>But I'd like it to do it's magic here:</p>
  
  <pre><code>public ActionResult PageView()
  {
  }
  </code></pre>
  
  <p>Yes, I know I could just use an <code>ActionFilter</code> attribute and decorate the actions I'd like to execute this on, but I'd like to keep it as a global <code>ActionFilter</code> and detect inside the action whether I need to perform the desired work. </p>