Skip to content
ptittof57 edited this page Aug 15, 2015 · 2 revisions
<title>SA1015: ClosingGenericBracketsMustBeSpacedCorrectly</title> <script src="script/helpstudio.js" type="text/javascript"></script> <script src="script/StandardText.js" type="text/jscript"></script>
<script type="text/jscript"> WritePageTop(document.title);</script>

TypeName

ClosingGenericBracketsMustBeSpacedCorrectly

CheckId

SA1015

Category

Spacing Rules

Cause

A closing generic bracket within a C# element is not spaced correctly.

Rule Description

A violation of this rule occurs when the spacing around a closing generic bracket is not correct.

A closing generic bracket should never be preceded by whitespace, unless the bracket is the first character on the line. A closing generic bracket should be followed by an open parenthesis, a close parenthesis, a closing generic bracket, a nullable symbol, an end of line or a single whitespace (but not whitespace and an open parenthesis).

How to Fix Violations

To fix a violation of this rule, ensure the whitespace around the closing generic bracket is correct.

How to Suppress Violations

[SuppressMessage("StyleCop.CSharp.SpacingRules", "SA1015:ClosingGenericBracketsMustBeSpacedCorrectly", Justification = "Reviewed.")]
    </div>
</body>
Clone this wiki locally