title: Is it possible to send object as route value in RedirectToRouteResult?
body: <p>First of all, it needs to create some codes that handle any error in my application like the following code.</p>
  
  <pre><code>public class HandleSomeErrorAttribute : HandleErrorAttribute
  {
      public string ControllerName { get; set; }
      public string ActionName { get; set; }
  
      public override void OnException(ExceptionContext filterContext)
      {
          base.OnException(filterContext);
  
          if(filterContext.Result != null)
          {
              var viewResult = filterContext.Result as ViewResult;
  
              filterContext.Result = new RedirectToRouteResult(new RouteValueDictionary(
                   new
                   {
                       controller = ControllerName,
                       action = ActionName,
                       errorInfo = "test"
                   }
              ));
          }
      }
  }
  </code></pre>
  
  <p>Everything works fine if I send test as errorInfo value. In the other hand, if I send some errorInfo object as errorInfo value, action controller will not receive any errorInfo value. It always is null.</p>
  
  <p>I know this behavior is designed to handle any values in form collection that is sent by web browser when user submits form. So, it always read only string value and parses it to object.</p>
  
  <p>So, is it possible to do that?</p>
  
  <p><strong>Thanks,</strong></p>