Ticket T372343
Visible to All Users

The "Name can be simplified" refactoring replaces only a specific occurrence

created 9 years ago

[DevExpress Support Team: CLONED FROM T371840: The "Declare Constant" refactoring does not replace all occurrences in a file]
Thanks. BTW, the behaviour is similar with the "Name can be simplifed" refactoring for types/namespaces too. Only the specific occurrence is replaced.

Models.ReportModel pReport = new Models.ReportModel();

The refactoring replaces the "Models." only on the LHS while the RHS is left as is.

Show previous comments (1)
SR SR
Senthil Ramanathan 9 years ago

    Ahh. Thanks. I got it confused with the coderush one :-)

    DevExpress Support Team 9 years ago

      No problem, Senthil. We will notify you when we port the "Remove Type Qualifier (replace all)" refactoring.

      DevExpress Support Team 8 years ago

        Hi Senthil,

        We have implemented the "Remove Type Qualifier" feature with the latest CodeRush for Roslyn 16.1.8 release.
        It is available with qualified type reference expressions. There is also "Remove Type Qualifier (replace all)", and a code cleanup rule was added.
        Please refer to the what's new list for more details.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.