Bug Report T413683
Visible to All Users

Templates do not work in certain code parts

created 9 years ago

Hello,

I use the code below in one .cs file.

Scenario 1 :

  1. I type "mv" + space under the "POS1" comment
  2. The result is the string : mvcaction4
    3. I type "mv" + space under the "POS2" comment
    4.The result is the one expected a method return void

Scenario 2:

  1. Change GetPerson() to a void method.
    2. I type "mv" + space under the "POS1" comment
    4.The result is the one expected a method return void
    5. I type "mv" + space under the "POS2" comment
    6.The result is the one expected a method return void
C#
using System.Collections.Generic; namespace MyTesting { public class Person { public string FirstName { get; set; } public string LastName { get; set; } } public class UsingPerson { List<Person> GetPerson2() { return null; } //POS1 List<Person> GetPerson() { return null; } //POS2 } }
Comments (3)
DevExpress Support Team 9 years ago

    Hi Christian,

    Thank you for a detailed description of the problem. I have reproduced this problem locally and we will fix it in our future builds.

    CI CI
    Christian Ista 9 years ago

      I hope quickly it's very painful :)

      DevExpress Support Team 9 years ago

        Rest assured. Templates is one of our major features and we will look into this problem first.

        Answers approved by DevExpress Support

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

          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.