From 2a31739302c818e32444a0e4608b627acb179613 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Tue, 25 Jun 2019 13:32:21 -0700 Subject: [PATCH] Update doc comment for RazorInjectAttribute (#11554) * Update doc comment for RazorInjectAttribute --- src/Mvc/Mvc.Razor/src/Internal/RazorInjectAttribute.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Mvc/Mvc.Razor/src/Internal/RazorInjectAttribute.cs b/src/Mvc/Mvc.Razor/src/Internal/RazorInjectAttribute.cs index 72b1c31f49..a981e6eb66 100644 --- a/src/Mvc/Mvc.Razor/src/Internal/RazorInjectAttribute.cs +++ b/src/Mvc/Mvc.Razor/src/Internal/RazorInjectAttribute.cs @@ -5,8 +5,15 @@ using System; namespace Microsoft.AspNetCore.Mvc.Razor.Internal { + /// + /// Specifies that the attributed property should be bound using request services. + /// + /// This attribute is used as the backing attribute for the @inject + /// Razor directive. + /// + /// [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)] public class RazorInjectAttribute : Attribute { } -} \ No newline at end of file +}