Bug Report T652717
Visible to All Users

Rename Refactoring - Rename all the files of a partial class

created 7 years ago

When renaming a Class, and it's a partial Class I would also like to rename the partial class file as well.

Right now I have to manually rename the partial class file.

So if I have

MyClass.cs
MyClass.Partial.cs

If I rename MyClass to AnotherClass and then tell it to rename the file to match the type I'm left with this:

AnotherClass.cs
MyClass.Partial.cs

When I would like to be :

AnotherClass.cs
AnotherClass.Partial.cs

Comments (1)
DevExpress Support Team 7 years ago

    Hi Brien,

    Thank you for sharing your idea with us.  We appreciate it greatly.

    We cannot do much with renaming a class, as the built-in VS Rename refactoring is used there.  However, we completely agree that it would be great if the "Rename File to Match Type" refactoring can process partial class files.  We will improve it in our future updates.

    Answers approved by DevExpress Support

    created 7 years ago

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      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.