diff --git a/src/Mvc/src/Microsoft.AspNetCore.Mvc.DataAnnotations/RequiredAttributeAdapter.cs b/src/Mvc/src/Microsoft.AspNetCore.Mvc.DataAnnotations/RequiredAttributeAdapter.cs index e4f824ae30..776f3742a5 100644 --- a/src/Mvc/src/Microsoft.AspNetCore.Mvc.DataAnnotations/RequiredAttributeAdapter.cs +++ b/src/Mvc/src/Microsoft.AspNetCore.Mvc.DataAnnotations/RequiredAttributeAdapter.cs @@ -8,13 +8,22 @@ using Microsoft.Extensions.Localization; namespace Microsoft.AspNetCore.Mvc.DataAnnotations { - internal class RequiredAttributeAdapter : AttributeAdapterBase + /// + /// for . + /// + public sealed class RequiredAttributeAdapter : AttributeAdapterBase { + /// + /// Initializes a new instance of . + /// + /// The . + /// The . public RequiredAttributeAdapter(RequiredAttribute attribute, IStringLocalizer stringLocalizer) : base(attribute, stringLocalizer) { } + /// public override void AddValidation(ClientModelValidationContext context) { if (context == null)