Skip to content
ptittof57 edited this page Aug 15, 2015 · 2 revisions
<title>SA1018: NullableTypeSymbolsMustNotBePrecededBySpace</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

NullableTypeSymbolsMustNotBePrecededBySpace

CheckId

SA1018

Category

Spacing Rules

Cause

A nullable type symbol within a C# element is not spaced correctly.

Rule Description

A violation of this rule occurs when the spacing around a nullable type symbol is not correct.

A nullable type symbol should never be preceded by whitespace, unless the symbol is the first character on the line.

How to Fix Violations

To fix a violation of this rule, ensure that there is no whitespace before the nullable type symbol.

How to Suppress Violations

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