This commit is contained in:
hishamco 2018-01-13 23:34:43 +03:00
parent 29f7e4bd62
commit 2fe9fb4707
2 changed files with 2 additions and 3 deletions

View File

@ -105,7 +105,7 @@ namespace Microsoft.AspNetCore.Builder
if (cultures.Length == 0) if (cultures.Length == 0)
{ {
throw new ArgumentException(nameof(cultures)); throw new ArgumentException($"The {cultures} cannot be null.", nameof(cultures));
} }
var options = new RequestLocalizationOptions() var options = new RequestLocalizationOptions()

View File

@ -110,7 +110,6 @@ namespace Microsoft.AspNetCore.Builder
/// </summary> /// </summary>
public IList<IRequestCultureProvider> RequestCultureProviders { get; set; } public IList<IRequestCultureProvider> RequestCultureProviders { get; set; }
/// <summary> /// <summary>
/// Adds the set of the supported cultures by the application. /// Adds the set of the supported cultures by the application.
/// </summary> /// </summary>
@ -147,7 +146,7 @@ namespace Microsoft.AspNetCore.Builder
} }
/// <summary> /// <summary>
/// Set the default culture to be used by the application when a supported culture could not be determined by /// Set the default culture which is used by the application when a supported culture could not be determined by
/// one of the configured <see cref="IRequestCultureProvider"/>s. /// one of the configured <see cref="IRequestCultureProvider"/>s.
/// </summary> /// </summary>
/// <param name="defaultCulture">The default culture to be set.</param> /// <param name="defaultCulture">The default culture to be set.</param>