Fixing a few comments relating to DefaultBodyModelValidator.
This commit is contained in:
parent
53379e4395
commit
37193adef2
|
|
@ -71,7 +71,7 @@ namespace Microsoft.AspNet.Mvc
|
||||||
public List<InputFormatterDescriptor> InputFormatters { get; private set; }
|
public List<InputFormatterDescriptor> InputFormatters { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a list of <see cref="ExcludedValidationTypesPredicates"/> which return whether the given type
|
/// Gets a list of <see cref="ExcludeFromValidationDelegate"/> which return whether the given type
|
||||||
/// should be excluded from Validation in <see cref="IBodyModelValidator"/>
|
/// should be excluded from Validation in <see cref="IBodyModelValidator"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<ExcludeFromValidationDelegate> ExcludeFromValidationDelegates { get; }
|
public List<ExcludeFromValidationDelegate> ExcludeFromValidationDelegates { get; }
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,13 @@ using Microsoft.AspNet.Mvc.ModelBinding;
|
||||||
namespace Microsoft.AspNet.Mvc
|
namespace Microsoft.AspNet.Mvc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Extensions for <see cref="MvcOptions.ExcludedValidationTypesPredicates"/>.
|
/// Extensions for <see cref="MvcOptions.ExcludeFromValidationDelegates"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class ExcludeFromValidationDelegateExtensions
|
public static class ExcludeFromValidationDelegateExtensions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds a delegate to the specified <paramref name="list" /> that excludes the properties of the specified type
|
/// Adds a delegate to the specified <paramref name="list" />
|
||||||
/// and and it's derived types from validation.
|
/// that exludes the properties of the specified and it's derived types from validaton.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="list"><see cref="IList{T}"/> of <see cref="ExcludeFromValidationDelegate"/>.</param>
|
/// <param name="list"><see cref="IList{T}"/> of <see cref="ExcludeFromValidationDelegate"/>.</param>
|
||||||
/// <param name="type"><see cref="Type"/> which should be excluded from validation.</param>
|
/// <param name="type"><see cref="Type"/> which should be excluded from validation.</param>
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ using System;
|
||||||
namespace Microsoft.AspNet.Mvc.ModelBinding
|
namespace Microsoft.AspNet.Mvc.ModelBinding
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Delegate that determines if the specified type is excluded from validation.
|
/// Delegate that determines if the specified <paramref name="type"/> is excluded from validation.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="type"><see cref="Type"/> which needs to be checked.</param>
|
/// <param name="type"><see cref="Type"/> which needs to be checked.</param>
|
||||||
/// <returns><see cref="true"/> if excluded, <see cref="false"/> otherwise.</returns>
|
/// <returns><c>true</c> if excluded, <c>false</c> otherwise.</returns>
|
||||||
public delegate bool ExcludeFromValidationDelegate(Type type);
|
public delegate bool ExcludeFromValidationDelegate(Type type);
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue