Update comments to reflect the correct default values for HtmlDateRenderingMode (#4997)

This commit is contained in:
Derek 2016-07-27 15:20:12 -05:00 committed by Javier Calvarro Nelson
parent cad72e769f
commit f3f2bcdbb5
3 changed files with 8 additions and 10 deletions

View File

@ -17,9 +17,9 @@ namespace Microsoft.AspNetCore.Mvc.Rendering
public interface IHtmlHelper
{
/// <summary>
/// Set this property to <see cref="Html5DateRenderingMode.Rfc3339"/> to have templated helpers such as
/// <see cref="Editor"/> and <see cref="IHtmlHelper{TModel}.EditorFor"/> render date and time values as RFC
/// 3339 compliant strings. By default these helpers render dates and times using the current culture.
/// Set this property to <see cref="Html5DateRenderingMode.CurrentCulture" /> to have templated helpers such as
/// <see cref="Editor" /> and <see cref="IHtmlHelper{TModel}.EditorFor" /> render date and time
/// values using the current culture. By default, these helpers render dates and times as RFC 3339 compliant strings.
/// </summary>
Html5DateRenderingMode Html5DateRenderingMode { get; set; }

View File

@ -163,10 +163,9 @@ namespace Microsoft.AspNetCore.Mvc.Rendering
public bool ClientValidationEnabled { get; set; }
/// <summary>
/// Set this property to <see cref="Html5DateRenderingMode.Rfc3339" /> to have templated helpers such as
/// Set this property to <see cref="Html5DateRenderingMode.CurrentCulture" /> to have templated helpers such as
/// <see cref="IHtmlHelper.Editor" /> and <see cref="IHtmlHelper{TModel}.EditorFor" /> render date and time
/// values as RFC 3339 compliant strings. By default these helpers render dates and times using the current
/// culture.
/// values using the current culture. By default, these helpers render dates and times as RFC 3339 compliant strings.
/// </summary>
public Html5DateRenderingMode Html5DateRenderingMode { get; set; }

View File

@ -14,10 +14,9 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures
/// Gets or sets the <see cref="Html5DateRenderingMode.Html5DateRenderingMode"/> value.
/// </summary>
/// <remarks>
/// Set this property to <see cref="Html5DateRenderingMode.Rfc3339"/> to have templated helpers such as
/// <see cref="IHtmlHelper.Editor"/> and <see cref="IHtmlHelper{TModel}.EditorFor"/> render date and time
/// values as RFC 3339 compliant strings. By default these helpers render dates and times using the current
/// culture.
/// Set this property to <see cref="Html5DateRenderingMode.CurrentCulture" /> to have templated helpers such as
/// <see cref="IHtmlHelper.Editor" /> and <see cref="IHtmlHelper{TModel}.EditorFor" /> render date and time
/// values using the current culture. By default, these helpers render dates and times as RFC 3339 compliant strings.
/// </remarks>
public Html5DateRenderingMode Html5DateRenderingMode { get; set; }