Ticket T450728
Visible to All Users

Refactoring namespace

created 8 years ago

Hello,

I have this code :

C#
namespace MyTest { public class Class1 { public System.DateTime Date1 { get; set; } public System.DateTime Date2 { get; set; } } }

There is no way to simplify the using (like CRC) to get this :

C#
using System; namespace MyTest { public class Class1 { public DateTime Date1 { get; set; } public DateTime Date2 { get; set; } } }

In the sample it's with System but it's the same for all others assemblies.

Thanks,

Answers approved by DevExpress Support

created 8 years ago

Hi Christian,

We have recently released a new CodeRush for Roslyn 16.1.8 version that includes "Remove Type Qualifier" refactoring.
It could be applied for a concrete qualifier, for all qualifiers in a concrete document, or as a part of the "Code Cleanup" action.

Note that there was an issue with that refactoring, but it has already been resolved.

Regards,
Igor

    Comments (2)
    CI CI
    Christian Ista 8 years ago

      Hello,

      There is something strange, I used the "Code Cleanup" but it's a partial clear. Check the video.

      DevExpress Support Team 8 years ago

        Hello Christian,

        The issue you pointed out above was addressed in the context of this ticket.
        Our team is ready to publish a new minor update for CRR in a few days, so I suggest you wait for it.

        Thank you for your patience.

        Regards,
        Igor

        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.