Corrects spelling of some comments
This commit is contained in:
parent
ec31ff0c28
commit
39053a5e22
|
|
@ -75,10 +75,10 @@ namespace Microsoft.AspNetCore.Mvc.Filters
|
|||
|
||||
/// <summary>
|
||||
/// Returns the most effective (most specific) policy of type <typeparamref name="TMetadata"/> applied to
|
||||
/// the action assocatied with the <see cref="FilterContext"/>.
|
||||
/// the action associated with the <see cref="FilterContext"/>.
|
||||
/// </summary>
|
||||
/// <typeparam name="TMetadata">The type of the filter policy.</typeparam>
|
||||
/// <returns>The implementation of <typeparamref name="TMetadata"/> applied to the action assocatied with
|
||||
/// <returns>The implementation of <typeparamref name="TMetadata"/> applied to the action associated with
|
||||
/// the <see cref="FilterContext"/>
|
||||
/// </returns>
|
||||
public TMetadata FindEffectivePolicy<TMetadata>() where TMetadata : IFilterMetadata
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding
|
|||
/// <para>
|
||||
/// This overload does not account for <see cref="BindingInfo"/> specified via <see cref="ModelMetadata"/>. Consider using
|
||||
/// <see cref="GetBindingInfo(IEnumerable{object}, ModelMetadata)"/> overload, or <see cref="TryApplyBindingInfo(ModelMetadata)"/>
|
||||
/// on the result of this method to to get a more accurate <see cref="BindingInfo"/> instance.
|
||||
/// on the result of this method to get a more accurate <see cref="BindingInfo"/> instance.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="attributes">A collection of attributes which are used to construct <see cref="BindingInfo"/>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Mvc.Infrastructure
|
|||
/// <para>
|
||||
/// The default implementation of <see cref="OutputFormatterSelector"/> provided by ASP.NET Core MVC
|
||||
/// is <see cref="DefaultOutputFormatterSelector"/>. The <see cref="DefaultOutputFormatterSelector"/> implements
|
||||
/// MVC's default content negotiation algorthm. This API is designed in a way that can satisfy the contract
|
||||
/// MVC's default content negotiation algorithm. This API is designed in a way that can satisfy the contract
|
||||
/// of <see cref="ObjectResult"/>.
|
||||
/// </para>
|
||||
/// <para>
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ namespace Microsoft.AspNetCore.Mvc.Internal
|
|||
foreach (var segment in tokenizer)
|
||||
{
|
||||
// Determine if we need to do any path resolution.
|
||||
// We need to resovle paths with multiple path separators (e.g "//" or "\\") or, directory traversals e.g. ("../" or "./").
|
||||
// We need to resolve paths with multiple path separators (e.g "//" or "\\") or, directory traversals e.g. ("../" or "./").
|
||||
if (segment.Length == 0 ||
|
||||
segment.Equals(ParentDirectoryToken, StringComparison.Ordinal) ||
|
||||
segment.Equals(CurrentDirectoryToken, StringComparison.Ordinal))
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
|
|||
/// <param name="suppressBindingUndefinedValueToEnumType">
|
||||
/// Flag to determine if binding to undefined should be suppressed or not.
|
||||
/// </param>
|
||||
/// <param name="modelType">The mdoel type.</param>
|
||||
/// <param name="modelType">The model type.</param>
|
||||
/// <param name="loggerFactory">The <see cref="ILoggerFactory"/>,</param>
|
||||
public EnumTypeModelBinder(
|
||||
bool suppressBindingUndefinedValueToEnumType,
|
||||
|
|
@ -76,7 +76,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
|
|||
{
|
||||
// Enum.IsDefined does not work with combined flag enum values.
|
||||
// From EnumDataTypeAttribute.cs in CoreFX.
|
||||
// Exmaples:
|
||||
// Examples:
|
||||
//
|
||||
// [Flags]
|
||||
// enum FlagsEnum { Value1 = 1, Value2 = 2, Value4 = 4 }
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ namespace Microsoft.AspNetCore.Mvc
|
|||
/// <remarks>
|
||||
/// <para>
|
||||
/// Error messages in the <see cref="ModelStateDictionary"/> are often communicated to clients, either in HTML
|
||||
/// or using <see cref="BadRequestObjectResult"/>. In effect, this setting controls whether clients can recieve
|
||||
/// or using <see cref="BadRequestObjectResult"/>. In effect, this setting controls whether clients can receive
|
||||
/// detailed error messages about submitted JSON data.
|
||||
/// </para>
|
||||
/// <para>
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ namespace Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure
|
|||
}
|
||||
}
|
||||
|
||||
// Step 2: remove candiates with non-matching handlers.
|
||||
// Step 2: remove candidates with non-matching handlers.
|
||||
for (var i = candidates.Count - 1; i >= 0; i--)
|
||||
{
|
||||
var handler = candidates[i];
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ namespace Microsoft.AspNetCore.Mvc.RazorPages.Internal
|
|||
}
|
||||
|
||||
// We do two separate cache lookups, once for the binder and once for the executor.
|
||||
// Reduding it to a single lookup requires a lot of code change with little value.
|
||||
// Reducing it to a single lookup requires a lot of code change with little value.
|
||||
PageHandlerBinderDelegate handlerBinder = null;
|
||||
for (var i = 0; i < _actionDescriptor.HandlerMethods.Count; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue