3 instantiations of ViewDataInfo
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
ViewDataEvaluator.cs (3)
53
result = new
ViewDataInfo
(container: viewData, value: viewData.Model);
176
return new
ViewDataInfo
(indexableObject, value);
206
return new
ViewDataInfo
(container, propertyInfo);
22 references to ViewDataInfo
Microsoft.AspNetCore.Mvc.ViewFeatures (22)
ExpressionMetadataProvider.cs (1)
143
var
viewDataInfo = ViewDataEvaluator.Eval(viewData, expression);
Rendering\MultiSelectList.cs (1)
207
var
viewDataInfo = ViewDataEvaluator.Eval(container, expression);
ViewDataDictionary.cs (4)
361
var
info = GetViewDataInfo(expression);
416
/// Gets <see cref="
ViewDataInfo
"/> for named <paramref name="expression"/> in this
421
/// <see cref="
ViewDataInfo
"/> for named <paramref name="expression"/> in this
428
public
ViewDataInfo
? GetViewDataInfo(string? expression)
ViewDataEvaluator.cs (13)
15
/// Gets <see cref="
ViewDataInfo
"/> for named <paramref name="expression"/> in given
23
/// <see cref="
ViewDataInfo
"/> for named <paramref name="expression"/> in given <paramref name="viewData"/>.
25
public static
ViewDataInfo
Eval(ViewDataDictionary viewData, string expression)
47
var
result = EvalComplexExpression(viewData, fullName);
65
/// Gets <see cref="
ViewDataInfo
"/> for named <paramref name="expression"/> in given
73
/// <see cref="
ViewDataInfo
"/> for named <paramref name="expression"/> in given
76
public static
ViewDataInfo
Eval(object indexableObject, string expression)
82
private static
ViewDataInfo
EvalComplexExpression(object indexableObject, string expression)
98
private static
ViewDataInfo
InnerEvalComplexExpression(object indexableObject, string expression)
104
var
targetInfo = GetPropertyValue(indexableObject, leftExpression);
154
private static
ViewDataInfo
GetIndexedPropertyValue(object indexableObject, string key)
183
private static
ViewDataInfo
GetPropertyValue(object container, string propertyName)
186
var
value = GetIndexedPropertyValue(container, propertyName);
ViewDataInfo.cs (3)
19
/// Initializes a new instance of the <see cref="
ViewDataInfo
"/> class with info about a
31
/// Initializes a new instance of the <see cref="
ViewDataInfo
"/> class with info about a
44
/// Initializes a new instance of the <see cref="
ViewDataInfo
"/> class with info about a