a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
768 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|