diff --git a/src/Razor/Razor/src/TagHelpers/RestrictChildrenAttribute.cs b/src/Razor/Razor/src/TagHelpers/RestrictChildrenAttribute.cs index bc4f6bac35..2c5652af8d 100644 --- a/src/Razor/Razor/src/TagHelpers/RestrictChildrenAttribute.cs +++ b/src/Razor/Razor/src/TagHelpers/RestrictChildrenAttribute.cs @@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Razor.TagHelpers /// as will result /// in this attribute being ignored. [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] - public class RestrictChildrenAttribute : Attribute + public sealed class RestrictChildrenAttribute : Attribute { /// /// Instantiates a new instance of the class.