Ticket Q239284
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

CodeGen - Add options to specify code generation rules

Option to have 'Remove Type Qualifier' place using clauses inside of namespace?

created 16 years ago

I have a code style where using clauses must be inside of the namespace. While I know this violates the Framework Design Guidelines (by Cwalina and Abrams), it keeps an emphasis on always using the narrowest possible scope. However, when I use the refactor 'Remove Type Qualifier', it ignores where I have my usings and places it outside of the namespace. Is there a way to have this refactoring add to the existing using statements inside the namespace?
Thanks,
Mike

Comments (2)
DevExpress Support Team 16 years ago

    Hi Mike,
    I'm afraid it is impossible to instruct the current Refactor! version to work as you described, sorry. However, we're planning to add options, which will allow you to specify how the resulting code should be generated, in the context of the following suggestion:
    ID: S19229, CodeGen - Add options to specify code generation rules
    I've added the corresponding note to this suggestion, and we'll take the situation you described into account when start working on this item.
    Thanks,
    Vito

      Thanks Vito. I look forward to some of the possible customizations.

      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.