Implemented interface member:
method
NameFor<TResult>
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>.NameFor<TResult>(System.Linq.Expressions.Expression<System.Func<TModel, TResult>>)
10 references to NameFor
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (10)
Rendering\HtmlHelperNameExtensionsTest.cs (10)
51
var nameForResult = helper.
NameFor
(m => m);
82
var nameForResult = helper.
NameFor
(m => m);
104
var nameForResult = helper.
NameFor
(m => m.Property1);
130
var nameForResult = helper.
NameFor
(m => m.Property1);
149
var nameForResult = helper.
NameFor
(m => m.Inner.Id);
177
var nameForResult = helper.
NameFor
(m => m);
205
var nameForResult = helper.
NameFor
(m => m.Property1);
240
var nameResult = helper.
NameFor
(model => new { foo = "Bar" });
317
var nameResult = helper.
NameFor
(expression);
336
ExceptionAssert.Throws<InvalidOperationException>(() => helper.
NameFor
(m => collection[m]), message);