2
使用HttpContext.Current.CurrentHandler进行运行时视图访问是否有任何潜在的缺陷?使用HttpContext.Current.CurrentHandler进行运行时视图访问
public static GetView<T>(T view) where T : IView
{
return HttpContext.Current.CurrentHandler as T;
}