From eee77a8f10dae2cd2221477b6999203844d10772 Mon Sep 17 00:00:00 2001
From: Scott Addie <10702007+scottaddie@users.noreply.github.com>
Date: Mon, 8 Jun 2020 17:57:11 -0500
Subject: [PATCH] Improve XML docs for ActionResultStatusCodeAttribute (#22598)
---
.../ActionResultStatusCodeAttribute.cs | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultStatusCodeAttribute.cs b/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultStatusCodeAttribute.cs
index 9d5709ac95..4fb186b158 100644
--- a/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultStatusCodeAttribute.cs
+++ b/src/Mvc/Mvc.Core/src/Infrastructure/ActionResultStatusCodeAttribute.cs
@@ -6,18 +6,24 @@ using System;
namespace Microsoft.AspNetCore.Mvc.Infrastructure
{
///
- /// Attribute annoted on ActionResult constructor and helper method parameters to indicate
+ /// Attribute annotated on ActionResult constructor and helper method parameters to indicate
/// that the parameter is used to set the "statusCode" for the ActionResult.
///
/// Analyzers match this parameter by type name. This allows users to annotate custom results \ custom helpers
- /// with a user defined attribute without having to expose this type.
+ /// with a user-defined attribute without having to expose this type.
///
///
/// This attribute is intentionally marked Inherited=false since the analyzer does not walk the inheritance graph.
///
///
///
- /// StatusCodeResult([ActionResultStatusCodeParameter] int statusCode)
+ /// Annotated constructor parameter:
+ ///
+ /// public StatusCodeResult([ActionResultStatusCode] int statusCode)
+ /// {
+ /// StatusCode = statusCode;
+ /// }
+ ///
///
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
public sealed class ActionResultStatusCodeAttribute : Attribute