TypeName | SA1214ReadonlyElementsMustAppearBeforeNonReadonlyElements |
CheckId | SA1214 |
Category | Ordering Rules |
A readonly field is positioned beneath a non-readonly field.
A violation of this rule occurs when a readonly field is positioned beneath a non-readonly field.
To fix an instance of this violation, place all readonly fields above all non-readonly fields.
[SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1214:ReadonlyElementsMustAppearBeforeNonReadonlyElements", Justification = "Reviewed.")]
#pragma warning disable SA1214 // ReadonlyElementsMustAppearBeforeNonReadonlyElements
#pragma warning restore SA1214 // ReadonlyElementsMustAppearBeforeNonReadonlyElements