16 references to ViewDataDictionary
Microsoft.AspNetCore.Mvc.TagHelpers (1)
PartialTagHelper.cs (1)
202var newViewData = new ViewDataDictionary<object>(baseViewData, model);
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
HtmlHelper.cs (1)
546var newViewData = new ViewDataDictionary<object>(baseViewData, model);
HtmlHelperOfT.cs (2)
73ViewData = new ViewDataDictionary<TModel>(viewContext.ViewData, viewContext.ViewData.Model); 156new ViewDataDictionary<TModelItem>(ViewData, model: null),
ViewComponent.cs (1)
214var viewData = new ViewDataDictionary<TModel?>(ViewData, model);
ViewDataDictionaryOfT.cs (1)
44/// <see cref="ViewDataDictionary{TModel}(ViewDataDictionary, object)"/> to ignore <c>source.Model</c>.
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (10)
ViewDataDictionaryOfTModelTest.cs (10)
163var viewData = new ViewDataDictionary<int>(source, model: null); 189var viewData2 = new ViewDataDictionary<string>(source, model: null); 219exception = Assert.Throws<InvalidOperationException>(() => new ViewDataDictionary<string>(source, model: 24)); 251var viewData = new ViewDataDictionary<object>(source, model); 274var viewData = new ViewDataDictionary<int?>(source, model); 315var viewData = new ViewDataDictionary<TestModel>(source, model); 333var viewData3 = new ViewDataDictionary<int>(viewData2, model: null); 356var viewData3 = new ViewDataDictionary<string>(viewData2, model: null); 381var viewData3 = (ViewDataDictionary)new ViewDataDictionary<string>(viewData2, model: null); 408var viewData3 = (ViewDataDictionary)new ViewDataDictionary<int>(viewData2, model: null);