Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1016 Bytes

SA1019.md

File metadata and controls

39 lines (29 loc) · 1016 Bytes

SA1019

TypeName SA1019MemberAccessSymbolsMustBeSpacedCorrectly
CheckId SA1019
Category Spacing Rules

Cause

The spacing around a member access symbol is incorrect, within a C# code file.

Rule description

A violation of this rule occurs when the spacing around a member access symbol is incorrect. A member access symbol should not have whitespace on either side, unless it is the first character on the line.

How to fix violations

To fix a violation of this rule, ensure that the member access symbol is not surrounded by any whitespace.

How to suppress violations

[SuppressMessage("StyleCop.CSharp.SpacingRules", "SA1019:MemberAccessSymbolsMustBeSpacedCorrectly", Justification = "Reviewed.")]
#pragma warning disable SA1019 // MemberAccessSymbolsMustBeSpacedCorrectly
#pragma warning restore SA1019 // MemberAccessSymbolsMustBeSpacedCorrectly