TypeName | SA1204StaticElementsMustAppearBeforeInstanceElements |
CheckId | SA1204 |
Category | Ordering Rules |
A static element is positioned beneath an instance element of the same type.
A violation of this rule occurs when a static element is positioned beneath an instance element of the same type. All static elements should be placed above all instance elements of the same type to make it easier to see the interface exposed from the instance and static version of the class.
To fix an instance of this violation, place all static elements above all instance elements of the same type.
[SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1204:StaticElementsMustAppearBeforeInstanceElements", Justification = "Reviewed.")]
#pragma warning disable SA1204 // StaticElementsMustAppearBeforeInstanceElements
#pragma warning restore SA1204 // StaticElementsMustAppearBeforeInstanceElements