RCS1203: Use AttributeUsageAttribute
Properties
Property | Value |
---|---|
Default Severity | Warning |
Minimum language version | - |
Examples
Example #1
diagnostic.cs
public class FooAttribute : Attribute
{
}
fix.cs
[AttributeUsageAttribute(AttributeTargets.All, AllowMultiple = false)]
public class FooAttribute : Attribute
{
}