Is there any potential pitfall for using HttpContext.Current.CurrentHandler for runtime view access?
public static GetView<T>(T view) where T : IView
{
return HttpContext.Current.CurrentHandler as T;
}
Is there any potential pitfall for using HttpContext.Current.CurrentHandler for runtime view access?
public static GetView<T>(T view) where T : IView
{
return HttpContext.Current.CurrentHandler as T;
}