Current filter:
                                You should refresh the page.
                                  • I have the Code Cleanup option "Use explicit 'this' qualifier for fields" set.

                                    I have a class like the following:

                                    [C#]
                                    using System; namespace Demo { public class Repro { public static readonly string MyConstant = "constant"; public void DoWork() { Console.WriteLine(MyConstant); } } }

                                    If I run code cleanup with this option enabled, I get an incorrect "this" added to the use of the static:

                                    [C#]
                                    using System; namespace Demo { public class Repro { public static readonly string MyConstant = "constant"; public void DoWork() { Console.WriteLine(this.MyConstant); } } }
                                • George K (DevExpress) 02.11.2016

                                  Hi Travis,
                                  Thanks for the code snippet.
                                  I have managed to reproduce the issue. Please give us some time to research the issue in detail.

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed:

                                We have fixed this problem and will include it in an upcoming release. The final release date has not been set, but once it is published we will send you an automatic notification.