1
/* ****************************************************************************
3 * Copyright (c) Microsoft Corporation. All rights reserved.
5 * This software is subject to the Microsoft Public License (Ms-PL).
6 * A copy of the license can be found in the license.htm file included
7 * in this distribution.
9 * You must not remove this notice, or any other, from this software.
11 * ***************************************************************************/
13 namespace System
.Web
.Mvc
{
14 using System
.Web
.Routing
;
16 public class AjaxHelper
<TModel
> : AjaxHelper where TModel
: class {
17 private ViewDataDictionary
<TModel
> _viewData
;
19 public AjaxHelper(ViewContext viewContext
, IViewDataContainer viewDataContainer
)
20 : this(viewContext
, viewDataContainer
, RouteTable
.Routes
) {
23 public AjaxHelper(ViewContext viewContext
, IViewDataContainer viewDataContainer
, RouteCollection routeCollection
)
24 : base(viewContext
, viewDataContainer
, routeCollection
) {
26 _viewData
= new ViewDataDictionary
<TModel
>(viewDataContainer
.ViewData
);
29 public new ViewDataDictionary
<TModel
> ViewData
{