JetBrains Rider 2024.1 Help

Code Inspection: Adjust modifiers declaration order

Category

Syntax Style

ID

ArrangeStaticMemberQualifier

EditorConfig

resharper_arrange_static_member_qualifier_highlighting

Default severity

Hint

Language

C#

Requires SWA

No

C# modifiers of types and type members can be written in any order. However, arranging them in a similar way throughout your code is a good practice, which improves code readability. Besides, you may prefer using or not using private and internal modifiers explicitly.

By default, JetBrains Rider suggests to use private and internal modifiers explicitly, and to arrange modifiers in a specific order. If necessary, you can flexibly configure these preferences.

For more information about configuring and enforcing your preferences for type and member modifiers, refer to Code Syntax Style: Modifiers.

Last modified: 17 April 2024