Permalink
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (26 sloc) 822 Bytes

RCS1203: Use AttributeUsageAttribute

Property Value
Id RCS1203
Category Design
Default Severity Warning
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

public class FooAttribute : Attribute // RCS1203
{
}

Code with Fix

[AttributeUsageAttribute(AttributeTargets.All, AllowMultiple = false)]
public class FooAttribute : Attribute
{
}

See Also

(Generated with DotMarkdown)