Fetching contributors…
Cannot retrieve contributors at this time
40 lines (29 sloc) 947 Bytes


TypeName SA1311StaticReadonlyFieldsMustBeginWithUpperCaseLetter
CheckId SA1311
Category Naming Rules


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