- 反射获取当前请求参数
var prop = System.Type.GetType("System.Web.HttpContext, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a").GetProperty("Current").GetValue(null, null); var rq = prop.GetType().GetProperty("Request").GetValue(prop, null); var ad = rq.GetType().GetMethod("get_Item").Invoke(rq, new object[] { "admin" });