System.Web.Mvc.ReflectedActionDescriptor descriptor = filterContext.ActionDescriptor as System.Web.Mvc.ReflectedActionDescriptor; if (descriptor != null) { Type actionType =descriptor.MethodInfo.ReturnType; if (actionType.Equals(typeof(ActionResult))…
原文:关于Action返回结果类型的事儿(下) using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Mvc.Ajax; using System.IO; namespace MVC.Controllers { /// <summary> /// Co…