coderushforroslyn-403212-getting-started-examples-organize-members-how-to-group-and-sort-properties-with-backing-fields.md
Organize Members can group and sort properties with backing fields with the following criteria:
This example describes how to create, configure, and apply rules for properties with backing fields to implement the scenarios described above.
Open the Editor | All Languages | Organize Members options page to configure the Organize Members.
Choose the StyleCop rule set in the “Rule set” section.
Select the “Properties” rule.
Change the “Properties” rule settings.
Click Apply and OK to save the changes and close the Organize Members options page.
Copy the following code and paste it in your project.
Run Organize members.
CodeRush places backing fields with their corresponding properties.
Open the Organize Members options page. See the step 1 in the previous section.
Select the “Internal properties” rule in the “Default” rule set.
Change the “Internal properties” rule settings as shown in the screenshot below.
Select the “Public properties” rule and change its settings similarly. The modified rule looks as follows:
Click Apply and OK to save the changes and close the Organize Members options page.
Copy the code from the previous section (see the step 6) and paste it in your project.
Run Organize members.
CodeRush places properties with backing fields according to their visibility.