From 237a7a65d6432e0ac99537e73f745603cb9ad867 Mon Sep 17 00:00:00 2001 From: NTaylorMullen Date: Wed, 16 Jan 2019 13:59:49 -0800 Subject: [PATCH] Seal RestrictChildrenAttribute. Addresses #5041 --- src/Razor/Razor/src/TagHelpers/RestrictChildrenAttribute.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.