Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 947 Bytes

SA1311.md

File metadata and controls

39 lines (29 loc) · 947 Bytes

SA1311

TypeName SA1311StaticReadonlyFieldsMustBeginWithUpperCaseLetter
CheckId SA1311
Category Naming Rules

Cause

The name of a static readonly field does not begin with an upper-case letter.

Rule description

A violation of this rule occurs when the name of a static readonly field begins with a lower-case letter.

How to fix violations

To fix a violation of this rule, change the name of the field so that it begins with an upper-case letter.

How to suppress violations

[SuppressMessage("StyleCop.CSharp.NamingRules", "SA1311:StaticReadonlyFieldsMustBeginWithUpperCaseLetter", Justification = "Reviewed.")]
#pragma warning disable SA1311 // StaticReadonlyFieldsMustBeginWithUpperCaseLetter
#pragma warning restore SA1311 // StaticReadonlyFieldsMustBeginWithUpperCaseLetter