Current filter:
                                You should refresh the page.
                                  • If the C# 5.0 language version is selected in the advanced build settings, code cleanup leads to uncompilable code.

                                    Original code:

                                    [C#]
                                    public class Person {} public class Test { Person person = new Person(); public Person Person { get { return person; } set { person = value; } } }

                                    Code after the code cleanup:

                                    [C#]
                                    public class Person {} public class Test { Person person; public Person Person { get; set; } = new Person(); }

                                    Expected result:

                                    [C#]
                                    public class Test { Person person = new Person(); public Person Person { get { return person; } set { person = value; } } }

                                    Code cleanup should not change such properties.

                                • Alex Z (DevExpress) 08.15.2016

                                  We have reproduced this issue and will work on resolving it in future versions of the product.
                                  As a workaround please disable the 'Make properties auto implemented' code cleanup rule if you are working in projects using the C# 5.0 language.
                                  This can be done on the Code Cleanup options page.

                                  1. From the VisualStudio menu, select "CodeRush\Options..." .
                                  2. In the tree view on the left, navigate to this folder:
                                  Editor\Code Style
                                  3. Select the "Code Cleanup" options page.
                                  4. Uncheck the 'Make properties auto implemented' rule
                                  5. Press OK

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed:

                                • Alan Middleton999 08.25.2016

                                  Great news to see this fixed in the next release. Great work guys!

                                • Alex Z (DevExpress) 08.25.2016

                                  Alan,

                                  We are here to help, thank you for your kind words.