-
Notifications
You must be signed in to change notification settings - Fork 22
SA1204
ptittof57 edited this page Aug 15, 2015
·
3 revisions
<title>SA1204: StaticElementsMustAppearBeforeInstanceElements</title>
<script src="script/helpstudio.js" type="text/javascript"></script>
<script src="script/StandardText.js" type="text/jscript"></script>
<script type="text/jscript">WritePageTop(document.title);</script>
TypeName |
StaticElementsMustAppearBeforeInstanceElements |
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 must 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.")]
- - SA0102 - Clean Install
- - Download
- - Documentation Rules - Layout Rules - Maintainability Rules - Naming Rules - Ordering Rules - Readability Rules - Spacing Rules - Suppressions
- - Adding a custom StyleCop settings page - Adding custom rule settings - Authoring a custom styleCop rule - Authoring rules metadata - Custom CSharp Language Service - Custom MSBuild Integration - Hosting StyleCop in a Custom Environment - Installing a Custom Rule - Integrating StyleCop Into Build Environments - Integrating StyleCop into MSBuild - Writing Custom Rules for StyleCop