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
We have closed this ticket because another page addresses its subject:
CodeGen - Add options to specify code generation rules
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