8 instantiations of ViewDataDictionary
Microsoft.AspNetCore.Mvc.TagHelpers (1)
PartialTagHelper.cs (1)
202
var newViewData = new
ViewDataDictionary
<object>(baseViewData, model);
Microsoft.AspNetCore.Mvc.ViewFeatures (7)
HtmlHelper.cs (1)
546
var newViewData = new
ViewDataDictionary
<object>(baseViewData, model);
HtmlHelperOfT.cs (2)
73
ViewData = new
ViewDataDictionary
<TModel>(viewContext.ViewData, viewContext.ViewData.Model);
156
new
ViewDataDictionary
<TModelItem>(ViewData, model: null),
TemplateBuilder.cs (1)
74
var viewData = new
ViewDataDictionary
<object>(_viewData);
ViewComponent.cs (1)
214
var viewData = new
ViewDataDictionary
<TModel?>(ViewData, model);
ViewComponents\ViewComponentContext.cs (1)
61
new
ViewDataDictionary
<object>(viewContext.ViewData),
ViewDataDictionaryOfT.cs (1)
44
/// <see cref="
ViewDataDictionary
{TModel}(ViewDataDictionary, object)"/> to ignore <c>source.Model</c>.
48 references to ViewDataDictionary
Microsoft.AspNetCore.Mvc.Razor (2)
RazorPageOfT.cs (1)
24
public
ViewDataDictionary
<TModel> ViewData { get; set; } = default!;
RazorPagePropertyActivator.cs (1)
35
_viewDataDictionaryType = typeof(
ViewDataDictionary
<>).MakeGenericType(viewDataDictionaryModelType);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
PartialTagHelper.cs (1)
202
var
newViewData = new ViewDataDictionary<object>(baseViewData, model);
Microsoft.AspNetCore.Mvc.ViewFeatures (45)
ExpressionMetadataProvider.cs (1)
16
ViewDataDictionary
<TModel> viewData,
HtmlHelper.cs (1)
546
var
newViewData = new ViewDataDictionary<object>(baseViewData, model);
HtmlHelperOfT.cs (3)
45
public new
ViewDataDictionary
<TModel> ViewData { get; private set; }
60
ViewData = viewContext.ViewData as
ViewDataDictionary
<TModel>;
83
typeof(
ViewDataDictionary
<TModel>).FullName),
IModelExpressionProvider.cs (4)
16
/// <typeparam name="TModel">The type of the <paramref name="viewData"/>'s <see cref="
ViewDataDictionary
{T}.Model"/>.</typeparam>
18
/// <param name="viewData">The <see cref="
ViewDataDictionary
{TModel}"/> containing the <see cref="
ViewDataDictionary
{T}.Model"/>
23
ViewDataDictionary
<TModel> viewData,
ModelExpressionProvider.cs (5)
46
ViewDataDictionary
<TModel> viewData,
66
/// <typeparam name="TModel">The type of the <paramref name="viewData"/>'s <see cref="
ViewDataDictionary
{T}.Model"/>.</typeparam>
67
/// <param name="viewData">The <see cref="
ViewDataDictionary
{TModel}"/> containing the <see cref="
ViewDataDictionary
{T}.Model"/>
72
ViewDataDictionary
<TModel> viewData,
Rendering\HtmlHelperDisplayExtensions.cs (7)
58
/// <see cref="ViewFeatures.
ViewDataDictionary
{TModel}"/> instance created for the template.
139
/// <see cref="ViewFeatures.
ViewDataDictionary
{TModel}"/> instance created for the template.
255
/// <see cref="ViewFeatures.
ViewDataDictionary
{TModel}"/> instance created for the template.
332
/// <see cref="ViewFeatures.
ViewDataDictionary
{TModel}"/> instance created for the template.
439
/// <see cref="ViewFeatures.
ViewDataDictionary
{TModel}"/> instance created for the template.
501
/// <see cref="ViewFeatures.
ViewDataDictionary
{TModel}"/> instance created for the template.
578
/// <see cref="ViewFeatures.
ViewDataDictionary
{TModel}"/> instance created for the template.
Rendering\HtmlHelperEditorExtensions.cs (7)
58
/// <see cref="ViewFeatures.
ViewDataDictionary
{TModel}"/> instance created for the template.
136
/// <see cref="ViewFeatures.
ViewDataDictionary
{TModel}"/> instance created for the template.
248
/// <see cref="ViewFeatures.
ViewDataDictionary
{TModel}"/> instance created for the template.
321
/// <see cref="ViewFeatures.
ViewDataDictionary
{TModel}"/> instance created for the template.
424
/// <see cref="ViewFeatures.
ViewDataDictionary
{TModel}"/> instance created for the template.
486
/// <see cref="ViewFeatures.
ViewDataDictionary
{TModel}"/> instance created for the template.
563
/// <see cref="ViewFeatures.
ViewDataDictionary
{TModel}"/> instance created for the template.
Rendering\IHtmlHelper.cs (2)
210
/// view data that will be merged into the <see cref="
ViewDataDictionary
{TModel}"/> instance created for the
302
/// view data that will be merged into the <see cref="
ViewDataDictionary
{TModel}"/> instance created for the
Rendering\IHtmlHelperOfT.cs (3)
19
new
ViewDataDictionary
<TModel> ViewData { get; }
60
/// view data that will be merged into the <see cref="
ViewDataDictionary
{TModel}"/> instance created for the
161
/// view data that will be merged into the <see cref="
ViewDataDictionary
{TModel}"/> instance created for the
TemplateBuilder.cs (1)
74
var
viewData = new ViewDataDictionary<object>(_viewData);
ViewComponent.cs (1)
214
var
viewData = new ViewDataDictionary<TModel?>(ViewData, model);
ViewDataDictionary.cs (2)
51
/// <see cref="Type"/> will not change e.g. when copying from a <see cref="
ViewDataDictionary
{TModel}"/>
143
/// <see cref="
ViewDataDictionary
{TModel}"/> instance.
ViewDataDictionaryFactory.cs (2)
16
var type = typeof(
ViewDataDictionary
<>).MakeGenericType(modelType);
37
var type = typeof(
ViewDataDictionary
<>).MakeGenericType(modelType);
ViewDataDictionaryOfT.cs (6)
17
/// Initializes a new instance of the <see cref="
ViewDataDictionary
{TModel}"/> class.
20
/// For use when creating a <see cref="
ViewDataDictionary
{TModel}"/> for a new top-level scope.
32
/// Initializes a new instance of the <see cref="
ViewDataDictionary
{TModel}"/> class based in part on an
39
/// <see cref="ViewDataDictionary"/> instance to a <see cref="
ViewDataDictionary
{TModel}"/> instance.
55
/// Initializes a new instance of the <see cref="
ViewDataDictionary
{TModel}"/> class based in part on an
79
/// Initializes a new instance of the <see cref="
ViewDataDictionary
{TModel}"/> class.