Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2019-08-08 21:11:25 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-08-09 17:23:42 +0300
commit441257339f9c475c36532c17972a95b5d0338750 (patch)
tree5d702ba0f422c84b7e0aa9de0f4d712dbfc58d6b /netcore
parent74338e0f2d20f8a98b3c2a9858c91f0cc5669973 (diff)
Fix FxCop warning CA1018 (attributes should have AttributeUsage)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'netcore')
-rw-r--r--netcore/System.Private.CoreLib/shared/System/Runtime/CompilerServices/DiscardableAttribute.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/netcore/System.Private.CoreLib/shared/System/Runtime/CompilerServices/DiscardableAttribute.cs b/netcore/System.Private.CoreLib/shared/System/Runtime/CompilerServices/DiscardableAttribute.cs
index 5c15c759bf0..4a860b15878 100644
--- a/netcore/System.Private.CoreLib/shared/System/Runtime/CompilerServices/DiscardableAttribute.cs
+++ b/netcore/System.Private.CoreLib/shared/System/Runtime/CompilerServices/DiscardableAttribute.cs
@@ -5,7 +5,7 @@
namespace System.Runtime.CompilerServices
{
// Custom attribute to indicating a TypeDef is a discardable attribute.
-
+ [AttributeUsage(AttributeTargets.All)]
public class DiscardableAttribute : Attribute
{
public DiscardableAttribute() { }