Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Addressed code review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
NTaylorMullen committed Aug 4, 2016
1 parent 97a49f9 commit d71681e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Microsoft.AspNetCore.Mvc.TagHelpers/InputTagHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,13 @@ public override void Process(TagHelperContext context, TagHelperOutput output)
}

/// <summary>
/// Gets an &lt;input&gt; elements "type" attribute value for the given <paramref name="modelExplorer"/>.
/// Gets an &lt;input&gt; element's "type" attribute value based on the given <paramref name="modelExplorer"/>
/// or <see cref="InputType"/>.
/// </summary>
/// <param name="modelExplorer">The <see cref="ModelExplorer"/> to inspect.</param>
/// <param name="modelExplorer">The <see cref="ModelExplorer"/> to use.</param>
/// <param name="inputTypeHint">When this method returns, contains a type hint associated with the given
/// <paramref name="modelExplorer"/>.</param>
/// <returns>An &lt;input&gt; elements "type" attribute value.</returns>
/// <remarks><paramref name="inputTypeHint"/> values are based off of the <paramref name="modelExplorer"/>'s
/// <see cref="ModelExplorer.Metadata"/>. Input type hints are typically used to format an
/// &lt;input&gt; elements "value" attribute of a generated text box or used to determine if a text box should
/// be multi-line.</remarks>
/// <returns>An &lt;input&gt; element's "type" attribute value.</returns>
protected string GetInputType(ModelExplorer modelExplorer, out string inputTypeHint)
{
foreach (var hint in GetInputTypeHints(modelExplorer))
Expand Down

0 comments on commit d71681e

Please sign in to comment.