Browse Source

Seal RestrictChildrenAttribute.

Addresses #5041
NTaylorMullen 7 years ago
parent
commit
237a7a65d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Razor/Razor/src/TagHelpers/RestrictChildrenAttribute.cs

+ 1 - 1
src/Razor/Razor/src/TagHelpers/RestrictChildrenAttribute.cs

@@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Razor.TagHelpers
     /// <see cref="HtmlTargetElementAttribute.TagStructure"/> as <see cref="TagStructure.WithoutEndTag"/> will result
     /// in this attribute being ignored.</remarks>
     [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
-    public class RestrictChildrenAttribute : Attribute
+    public sealed class RestrictChildrenAttribute : Attribute
     {
         /// <summary>
         /// Instantiates a new instance of the <see cref="RestrictChildrenAttribute"/> class.