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)
51var nameForResult = helper.NameFor(m => m); 82var nameForResult = helper.NameFor(m => m); 104var nameForResult = helper.NameFor(m => m.Property1); 130var nameForResult = helper.NameFor(m => m.Property1); 149var nameForResult = helper.NameFor(m => m.Inner.Id); 177var nameForResult = helper.NameFor(m => m); 205var nameForResult = helper.NameFor(m => m.Property1); 240var nameResult = helper.NameFor(model => new { foo = "Bar" }); 317var nameResult = helper.NameFor(expression); 336ExceptionAssert.Throws<InvalidOperationException>(() => helper.NameFor(m => collection[m]), message);