Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

24 lines
768 B
C#

namespace System.Web.Mvc {
using System.Web.Routing;
public class HtmlHelper<TModel> : HtmlHelper {
private ViewDataDictionary<TModel> _viewData;
public HtmlHelper(ViewContext viewContext, IViewDataContainer viewDataContainer)
: this(viewContext, viewDataContainer, RouteTable.Routes) {
}
public HtmlHelper(ViewContext viewContext, IViewDataContainer viewDataContainer, RouteCollection routeCollection)
: base(viewContext, viewDataContainer, routeCollection) {
_viewData = new ViewDataDictionary<TModel>(viewDataContainer.ViewData);
}
public new ViewDataDictionary<TModel> ViewData {
get {
return _viewData;
}
}
}
}