Ticket Q252992
Visible to All Users
Duplicate

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

CodeGen - Add options to specify code generation rules

How to change order of keywords? (static, new etc)

created 15 years ago

As per this forum thread, http://community.devexpress.com/forums/p/87342/298959.aspx#298959
FX Style Cop is not liking: public new static FieldsClass Fields
it is after: public static new FieldsClass Fields
I have tried several ways to "trick" CodeRush into changing the order but to no avail :(
                Dim NewFieldsClassProperty As [Property] = BobProperty.AddProperty(Nothing, nameClass, nameProperty)
                Dim NewFieldsClassPropertyGet As [Get] = BobProperty.AddGetter(NewFieldsClassProperty)
                'Added this line to see if I "add" the Access Specifier (Static) then set IsNew but still the other way around
                BobProperty.AddAccessSpecifiers(NewFieldsClassProperty, BobClass.BuildAccessSpecifiers(False, False, False, True))
                'NewFieldsClassProperty.IsStatic = True 'Originally had this line, and reorded these statements
                NewFieldsClassProperty.IsNew = True
                NewFieldsClassProperty.Visibility = MemberVisibility.Public
So my question is how can I tell the ElementBuilder to format the proeprty declaration differently?
Cheers
PS. This is for Community Plugin XPO_EasyFields which full source is available from http://code.google.com/p/dxcorecommunityplugins/source/checkout

Comments (1)
DevExpress Support Team 15 years ago

    Hi Michael,
    Unfortunately, right now it is impossible to change the order in which our code generation engine generates these keywords. We're aware of this problem, and are planning to add the options page, which will allow you to configure it in the manner you need. Please track the following suggestion to stay informed on our progress over this item:
    ID: S19229, CodeGen - Add options to specify code generation rules
    I've also added the corresponding note to this suggestion.
    Thanks,
    Vito

    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.