58 instantiations of ViewDataDictionary
Microsoft.AspNetCore.Mvc.Razor.Test (13)
Compilation\RazorPagePropertyActivatorTest.cs (4)
118
var original = new
ViewDataDictionary
<object>(modelMetadataProvider, new ModelStateDictionary())
147
var original = new
ViewDataDictionary
<TestModel>(modelMetadataProvider, new ModelStateDictionary())
176
var original = new
ViewDataDictionary
<TestModel>(modelMetadataProvider, new ModelStateDictionary())
203
var original = new
ViewDataDictionary
<object>(modelMetadataProvider, new ModelStateDictionary());
RazorPageActivatorTest.cs (5)
52
var viewData = new
ViewDataDictionary
<MyModel>(MetadataProvider, new ModelStateDictionary());
88
var viewData = new
ViewDataDictionary
<object>(MetadataProvider, new ModelStateDictionary());
112
var viewData = new
ViewDataDictionary
<object>(MetadataProvider, new ModelStateDictionary())
160
var viewData = new
ViewDataDictionary
<MyModel>(MetadataProvider, new ModelStateDictionary());
175
var viewData = new
ViewDataDictionary
<object>(MetadataProvider, new ModelStateDictionary())
RazorPageCreateModelExpressionTest.cs (4)
26
var viewData = new
ViewDataDictionary
<string>(viewContext.ViewData)
51
var viewData = new
ViewDataDictionary
<string>(viewContext.ViewData)
108
var viewData = new
ViewDataDictionary
<RecursiveModel>(viewContext.ViewData);
314
var viewData = new
ViewDataDictionary
<RazorPageCreateModelExpressionModel>(provider, new ModelStateDictionary());
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\DefaultPageFactoryProviderTest.cs (1)
221
ViewData = new
ViewDataDictionary
<TestPage>(modelMetadataProvider, new ModelStateDictionary())
Microsoft.AspNetCore.Mvc.TagHelpers (1)
PartialTagHelper.cs (1)
202
var newViewData = new
ViewDataDictionary
<object>(baseViewData, model);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
LabelTagHelperTest.cs (1)
295
var viewData = new
ViewDataDictionary
<NestedModel>(metadataProvider, viewContext.ModelState);
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>.
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (35)
DefaultHtmlGeneratorTest.cs (1)
1034
var viewData = new
ViewDataDictionary
<TModel>(metadataProvider, actionContext.ModelState)
DefaultValidationHtmlAttributeProviderTest.cs (1)
254
var viewData = new
ViewDataDictionary
<TModel>(metadataProvider, actionContext.ModelState)
Rendering\HtmlHelperSelectTest.cs (4)
422
var viewData = new
ViewDataDictionary
<ModelContainingSources>(provider, modelState)
459
var viewData = new
ViewDataDictionary
<ModelContainingSources>(provider, modelState)
825
var viewData = new
ViewDataDictionary
<ModelContainingListOfSources>(provider, modelState)
862
var viewData = new
ViewDataDictionary
<ModelContainingListOfSources>(provider, modelState)
ViewComponentTests.cs (8)
77
Assert.Equal(new
ViewDataDictionary
<object>(viewComponent.ViewData), actualResult.ViewData);
96
Assert.Equal(new
ViewDataDictionary
<object>(viewComponent.ViewData), actualResult.ViewData);
114
Assert.Equal(new
ViewDataDictionary
<object>(viewComponent.ViewData), actualResult.ViewData);
134
Assert.Equal(new
ViewDataDictionary
<object>(viewComponent.ViewData), actualResult.ViewData);
154
Assert.Equal(new
ViewDataDictionary
<object>(viewComponent.ViewData), actualResult.ViewData);
173
Assert.Equal(new
ViewDataDictionary
<object>(viewComponent.ViewData), actualResult.ViewData);
192
Assert.Equal(new
ViewDataDictionary
<string>(viewComponent.ViewData), actualResult.ViewData);
212
Assert.Equal(new
ViewDataDictionary
<object>(viewComponent.ViewData), actualResult.ViewData);
ViewDataDictionaryOfTModelTest.cs (21)
19
var viewData = new
ViewDataDictionary
<string>(metadataProvider, modelState);
43
var viewData1 = new
ViewDataDictionary
<object>(source);
82
var viewData1 = new
ViewDataDictionary
<TestModel>(source);
144
var viewData = new
ViewDataDictionary
<TestModel>(source);
163
var viewData = new
ViewDataDictionary
<int>(source, model: null);
188
var viewData1 = new
ViewDataDictionary
<string>(source);
189
var viewData2 = new
ViewDataDictionary
<string>(source, model: null);
216
var exception = Assert.Throws<InvalidOperationException>(() => new
ViewDataDictionary
<string>(source));
219
exception = Assert.Throws<InvalidOperationException>(() => new
ViewDataDictionary
<string>(source, model: 24));
251
var viewData = new
ViewDataDictionary
<object>(source, model);
274
var viewData = new
ViewDataDictionary
<int?>(source, model);
293
var viewData = new
ViewDataDictionary
<int?>(source);
315
var viewData = new
ViewDataDictionary
<TestModel>(source, model);
332
var viewData2 = new
ViewDataDictionary
<int>(viewData1);
333
var viewData3 = new
ViewDataDictionary
<int>(viewData2, model: null);
355
var viewData2 = new
ViewDataDictionary
<string>(viewData1);
356
var viewData3 = new
ViewDataDictionary
<string>(viewData2, model: null);
380
var viewData2 = (ViewDataDictionary)new
ViewDataDictionary
<string>(viewData1);
381
var viewData3 = (ViewDataDictionary)new
ViewDataDictionary
<string>(viewData2, model: null);
407
var viewData2 = (ViewDataDictionary)new
ViewDataDictionary
<int>(viewData1);
408
var viewData3 = (ViewDataDictionary)new
ViewDataDictionary
<int>(viewData2, model: null);
199 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.Razor.Test (24)
Compilation\RazorPagePropertyActivatorTest.cs (10)
28
Assert.IsType<
ViewDataDictionary
<TestModel>>(viewDataDictionary);
47
Assert.IsType<
ViewDataDictionary
<object>>(viewDataDictionary);
75
Assert.IsType<
ViewDataDictionary
<TestModel>>(viewDataDictionary);
104
Assert.IsType<
ViewDataDictionary
<TestModel>>(viewDataDictionary);
118
var
original = new ViewDataDictionary<object>(modelMetadataProvider, new ModelStateDictionary())
133
Assert.IsType<
ViewDataDictionary
<TestModel>>(viewDataDictionary);
147
var
original = new ViewDataDictionary<TestModel>(modelMetadataProvider, new ModelStateDictionary())
162
Assert.IsType<
ViewDataDictionary
<object>>(viewDataDictionary);
176
var
original = new ViewDataDictionary<TestModel>(modelMetadataProvider, new ModelStateDictionary())
203
var
original = new ViewDataDictionary<object>(modelMetadataProvider, new ModelStateDictionary());
RazorPageActivatorTest.cs (7)
52
var
viewData = new ViewDataDictionary<MyModel>(MetadataProvider, new ModelStateDictionary());
88
var
viewData = new ViewDataDictionary<object>(MetadataProvider, new ModelStateDictionary());
112
var
viewData = new ViewDataDictionary<object>(MetadataProvider, new ModelStateDictionary())
160
var
viewData = new ViewDataDictionary<MyModel>(MetadataProvider, new ModelStateDictionary());
175
var
viewData = new ViewDataDictionary<object>(MetadataProvider, new ModelStateDictionary())
189
Assert.IsType<
ViewDataDictionary
<Guid>>(viewContext.ViewData);
329
public
ViewDataDictionary
<object> MoreViewData { get; set; }
RazorPageCreateModelExpressionTest.cs (7)
26
var
viewData = new ViewDataDictionary<string>(viewContext.ViewData)
51
var
viewData = new ViewDataDictionary<string>(viewContext.ViewData)
108
var
viewData = new ViewDataDictionary<RecursiveModel>(viewContext.ViewData);
278
ViewData = (
ViewDataDictionary
<string>)viewContext.ViewData,
288
ViewData = (
ViewDataDictionary
<RecursiveModel>)viewContext.ViewData,
298
ViewData = (
ViewDataDictionary
<RazorPageCreateModelExpressionModel>)viewContext.ViewData,
314
var
viewData = new ViewDataDictionary<RazorPageCreateModelExpressionModel>(provider, new ModelStateDictionary());
Microsoft.AspNetCore.Mvc.RazorPages.Test (9)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (2)
497
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.
ViewDataDictionary
<EmptyPage> ViewData => null;
519
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.
ViewDataDictionary
<EmptyPageModel> ViewData => null;
Infrastructure\DefaultPageFactoryProviderTest.cs (2)
430
public
ViewDataDictionary
<TestPage> ViewData { get; set; }
452
public
ViewDataDictionary
<ViewDataTestPageModel> ViewData { get; set; }
Infrastructure\PageActionInvokerProviderTest.cs (1)
145
Assert.NotNull(Assert.IsType<
ViewDataDictionary
<TestPageModel>>(pageContext.ViewData));
Infrastructure\PageActionInvokerTest.cs (4)
200
Assert.IsType<
ViewDataDictionary
<TestPage>>(page.ViewContext.ViewData);
256
Assert.IsType<
ViewDataDictionary
<PocoModel>>(page.PageContext.ViewData);
316
Assert.IsType<
ViewDataDictionary
<TestPageModel>>(pageModel.PageContext.ViewData);
481
Assert.IsType<
ViewDataDictionary
<TestPage>>(pageResult.ViewData);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
PartialTagHelper.cs (1)
202
var
newViewData = new ViewDataDictionary<object>(baseViewData, model);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
LabelTagHelperTest.cs (1)
295
var
viewData = new ViewDataDictionary<NestedModel>(metadataProvider, viewContext.ModelState);
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.
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (115)
ControllerTest.cs (1)
40
var
replacementViewData = new ViewDataDictionary<object>(metadataProvider);
DefaultDisplayTemplatesTest.cs (1)
241
var
viewData = html.ViewData;
DefaultEditorTemplatesTest.cs (2)
529
var
viewData = helper.ViewData;
553
var
viewData = helper.ViewData;
DefaultHtmlGeneratorTest.cs (1)
1034
var
viewData = new ViewDataDictionary<TModel>(metadataProvider, actionContext.ModelState)
DefaultValidationHtmlAttributeProviderTest.cs (1)
254
var
viewData = new ViewDataDictionary<TModel>(metadataProvider, actionContext.ModelState)
ExpressionMetadataProviderTest.cs (10)
22
var
viewData = new ViewDataDictionary<TestModel>(provider);
40
var
viewData = new ViewDataDictionary<TestModel>(provider);
58
var
viewData = new ViewDataDictionary<TestModel[]>(provider);
76
var
viewData = new ViewDataDictionary<TestModel[]>(provider);
99
var
viewData = new ViewDataDictionary<TestModel>(provider);
124
var
viewData = new ViewDataDictionary<TestModel>(provider);
143
var
viewData = new ViewDataDictionary<TestModel>(provider);
162
var
viewData = new ViewDataDictionary<ExpressionMetadataProviderTest>(provider);
184
var
viewData = new ViewDataDictionary<ExpressionMetadataProviderTest>(provider);
206
var
viewData = new ViewDataDictionary<ExpressionMetadataProviderTest>(provider);
Rendering\DefaultTemplatesUtilities.cs (5)
83
public static HtmlHelper<TModel> GetHtmlHelper<TModel>(
ViewDataDictionary
<TModel> viewData)
97
ViewDataDictionary
<TModel> viewData,
119
var
viewData = new ViewDataDictionary<TModel>(provider);
204
var
viewData = new ViewDataDictionary<TModel>(provider);
219
ViewDataDictionary
<TModel> viewData,
Rendering\HtmlHelperCheckboxTest.cs (7)
569
var
viewData = GetTestModelViewData();
594
var
viewData = GetTestModelViewData();
638
var
viewDataDictionary = new ViewDataDictionary<ModelWithValidation>(metadataProvider)
664
var
viewData = GetTestModelViewData();
827
private static
ViewDataDictionary
<TestModel> GetTestModelViewData()
837
private static
ViewDataDictionary
<ModelWithValidation> GetModelWithValidationViewData()
840
var
viewData = new ViewDataDictionary<ModelWithValidation>(provider)
Rendering\HtmlHelperDisplayTextTest.cs (2)
258
var
viewData = helper.ViewData;
283
var
viewData = helper.ViewData;
Rendering\HtmlHelperHiddenTest.cs (11)
529
var
viewData = GetViewDataWithModelStateAndModelAndViewDataValues();
568
var
viewData = GetViewDataWithModelStateAndModelAndViewDataValues();
800
var
viewData = GetViewDataWithModelStateAndModelAndViewDataValues();
854
var
viewData = GetViewDataWithNullModelAndNonNullViewData();
942
private static
ViewDataDictionary
<HiddenModel> GetViewDataWithNullModelAndNonNullViewData()
950
private static
ViewDataDictionary
<HiddenModel> GetViewDataWithNonNullModel()
952
var
viewData = new ViewDataDictionary<HiddenModel>(new EmptyModelMetadataProvider())
960
private static
ViewDataDictionary
<HiddenModel> GetViewDataWithModelStateAndModelAndViewDataValues()
962
var
viewData = GetViewDataWithNonNullModel();
969
private static
ViewDataDictionary
<HiddenModel> GetViewDataWithErrors()
971
var
viewData = GetViewDataWithModelStateAndModelAndViewDataValues();
Rendering\HtmlHelperPartialExtensionsTest.cs (6)
417
var
viewData = helper.ViewData;
446
var
viewData = helper.ViewData;
477
var
viewData = helper.ViewData;
506
var
viewData = helper.ViewData;
535
var
viewData = helper.ViewData;
566
var
viewData = helper.ViewData;
Rendering\HtmlHelperPasswordTest.cs (15)
36
public static TheoryData<
ViewDataDictionary
<PasswordModel>, object> PasswordWithViewDataAndAttributesData
40
var
nullModelViewData = GetViewDataWithNullModelAndNonEmptyViewData();
41
var
viewData = GetViewDataWithModelStateAndModelAndViewDataValues();
44
var data = new TheoryData<
ViewDataDictionary
<PasswordModel>, object>();
58
ViewDataDictionary
<PasswordModel> viewData,
77
ViewDataDictionary
<PasswordModel> viewData,
182
var
vdd = GetViewDataWithErrors();
240
var
viewData = GetViewDataWithModelStateAndModelAndViewDataValues();
290
var
vdd = GetViewDataWithErrors();
355
var
viewData = GetViewDataWithModelStateAndModelAndViewDataValues();
446
private static
ViewDataDictionary
<PasswordModel> GetViewDataWithNullModelAndNonEmptyViewData()
454
private static
ViewDataDictionary
<PasswordModel> GetViewDataWithModelStateAndModelAndViewDataValues()
456
var
viewData = GetViewDataWithNullModelAndNonEmptyViewData();
463
private static
ViewDataDictionary
<PasswordModel> GetViewDataWithErrors()
465
var
viewData = GetViewDataWithModelStateAndModelAndViewDataValues();
Rendering\HtmlHelperSelectTest.cs (10)
422
var
viewData = new ViewDataDictionary<ModelContainingSources>(provider, modelState)
459
var
viewData = new ViewDataDictionary<ModelContainingSources>(provider, modelState)
485
var
viewData = new ViewDataDictionary<ModelContainingSources>(provider)
512
var
viewData = new ViewDataDictionary<ModelContainingSources>(provider)
540
var
viewData = new ViewDataDictionary<ModelContainingSources>(provider)
825
var
viewData = new ViewDataDictionary<ModelContainingListOfSources>(provider, modelState)
862
var
viewData = new ViewDataDictionary<ModelContainingListOfSources>(provider, modelState)
888
var
viewData = new ViewDataDictionary<ModelContainingListOfSources>(provider)
915
var
viewData = new ViewDataDictionary<ModelContainingListOfSources>(provider)
943
var
viewData = new ViewDataDictionary<ModelContainingListOfSources>(provider)
Rendering\HtmlHelperTest.cs (4)
302
Assert.IsType<
ViewDataDictionary
<BaseModel>>(
320
$"'{typeof(
ViewDataDictionary
<NonDerivedModel>).FullName}'," +
321
$" but this method requires a value of type '{typeof(
ViewDataDictionary
<BaseModel>).FullName}'.";
342
$" but this method requires a value of type '{typeof(
ViewDataDictionary
<BaseModel>).FullName}'.";
Rendering\HtmlHelperValueTest.cs (2)
159
var
viewData = helper.ViewData;
217
var
viewData = helper.ViewData;
ViewComponents\ViewComponentContextTest.cs (1)
86
var
viewData = new ViewDataDictionary<int>(new EmptyModelMetadataProvider());
ViewComponentTests.cs (6)
112
Assert.IsType<
ViewDataDictionary
<object>>(actualResult.ViewData);
132
Assert.IsType<
ViewDataDictionary
<object>>(actualResult.ViewData);
152
Assert.IsType<
ViewDataDictionary
<object>>(actualResult.ViewData);
171
Assert.IsType<
ViewDataDictionary
<object>>(actualResult.ViewData);
190
Assert.IsType<
ViewDataDictionary
<string>>(actualResult.ViewData);
210
Assert.IsType<
ViewDataDictionary
<object>>(actualResult.ViewData);
ViewDataDictionaryOfTModelTest.cs (25)
19
var
viewData = new ViewDataDictionary<string>(metadataProvider, modelState);
35
var
source = new ViewDataDictionary<object>(metadataProvider)
43
var
viewData1 = new ViewDataDictionary<object>(source);
77
var
source = new ViewDataDictionary<TestModel>(metadataProvider);
82
var
viewData1 = new ViewDataDictionary<TestModel>(source);
144
var
viewData = new ViewDataDictionary<TestModel>(source);
163
var
viewData = new ViewDataDictionary<int>(source, model: null);
185
var
source = new ViewDataDictionary<int>(metadataProvider);
188
var
viewData1 = new ViewDataDictionary<string>(source);
189
var
viewData2 = new ViewDataDictionary<string>(source, model: null);
210
var
source = new ViewDataDictionary<int>(metadataProvider)
248
var
source = new ViewDataDictionary<TestModel>(new EmptyModelMetadataProvider());
251
var
viewData = new ViewDataDictionary<object>(source, model);
268
var
source = new ViewDataDictionary<int?>(metadataProvider)
274
var
viewData = new ViewDataDictionary<int?>(source, model);
290
var
source = new ViewDataDictionary<string>(metadataProvider);
293
var
viewData = new ViewDataDictionary<int?>(source);
309
var
source = new ViewDataDictionary<TestModel>(metadataProvider)
315
var
viewData = new ViewDataDictionary<TestModel>(source, model);
331
var
viewData1 = new ViewDataDictionary<int>(metadataProvider);
332
var
viewData2 = new ViewDataDictionary<int>(viewData1);
333
var
viewData3 = new ViewDataDictionary<int>(viewData2, model: null);
354
var
viewData1 = new ViewDataDictionary<string>(metadataProvider);
355
var
viewData2 = new ViewDataDictionary<string>(viewData1);
356
var
viewData3 = new ViewDataDictionary<string>(viewData2, model: null);
ViewDataOfTTest.cs (5)
14
var
viewDataOfT = new ViewDataDictionary<int>(new EmptyModelMetadataProvider());
26
var
viewDataOfT = new ViewDataDictionary<string>(new EmptyModelMetadataProvider());
39
var
viewDataOfT = new ViewDataDictionary<object>(new EmptyModelMetadataProvider());
53
var
viewData = new ViewDataDictionary<string>(new EmptyModelMetadataProvider());
80
var
viewData = new ViewDataDictionary<string>(new EmptyModelMetadataProvider());
RazorBuildWebSite.Views (2)
Pages\Rzc\Page.cs (2)
37
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.
ViewDataDictionary
<Page_Model> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.
ViewDataDictionary
<Page_Model>)PageContext?.ViewData;