Bug Report T453344
Visible to All Users

Code Templates - "And" and "Or" are not converted to "&&" and "||"

created 8 years ago (modified 8 years ago)

Hello,

With the code below when I type "and" (or "or") it's not converted to "&&". I join the setting and video.

C#
public class Person { public string FirstName { get; set; } public int Age { get; set; } } public class Testing { readonly List<Person> pers = new List<Person>(); void TestingAnd() { var res = pers.Where(x => x.Age == 25 ); } }

Thanks,

Comments (1)
AE AE
Alex Eg (DevExpress) 8 years ago

    Hi Christian,
    Thank you for detailed description of the issue. I have reproduced it and we are working on fixing it. You will be notified of our progress.

    Answers approved by DevExpress Support

    created 8 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.

      Comments (3)
      CI CI
      Christian Ista 8 years ago

        It's a partial fix

        When I use this syntax, the problem is still there.

        C#
        void TestingAnd() => pers.Where(x => x.Age == 25 and

        Thanks,

        AE AE
        Alex Eg (DevExpress) 8 years ago

          Hi Christian,
          Thank you for the update. We are working on this issue. Thank you for your patience.

          DevExpress Support Team 8 years ago

            Hello Christian,
            We have resolved this issue and published a build with a fix. You are welcome to download it here:
            DevExpress.CodeRush.Roslyn-16.1.9.16333.vsix

            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.