Bug Report T947644
Visible to All Users

Organize Members - Properties with expression-bodied accessors are wrongly treated as auto-implemented properties

created 4 years ago

Hello,

I've organized members like this:

  1. Fields by Visibility DESC, Name
  2. Auto-Implemented Properties by Visibility DESC, MemberTypeName, Name
  3. Properties by Visibility DESC, MemberTypeName, Name
  4. Methods by Visibility DESC, MemberTypeName, Name

I've set 1 empty line between each organized group and in Formatting 0 blank lines between Properties, Auto-Implemented Properties and Simple Properties to distinguish if organized groups are together.

Property Example1 has setter as expression while Example2 got setter as body.

Why this simple property Example1 isn't ordered next before Example2?

_1030684 1-1.jpg

Comments (3)
DevExpress Support Team 4 years ago

    Hi Simon,

    I have reproduced this behavior locally. We need some time to research the cause of this issue. We will inform you about our progress.

      Thank you.

      There's also issue with Formatting -> Blank Lines. If blank lines around Property is set to 1, Auto-Implemented Property blank lines around is set to 0 and Auto-Implemented Property is initialized it makes blank line below like shown on picture. I couldn't find option to avoid this behavior.

      CropImage.jpg

      DevExpress Support Team 4 years ago

        Hello,

        I've created a separate ticket on your behalf (T947961: Formatting - The blank lines option for auto-implemented properties with initializer is incorrectly processed). It has been placed in our processing queue and will be answered shortly.

        Answers approved by DevExpress Support

        created 4 years ago

        We have addressed the issue described in this ticket and will include a fix in our next maintenance update. To apply this solution before official release, request a hotfix by clicking the appropriate version link.

        Note: Hotfixes may be unavailable for betas/updates set for release within a week.

          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.