Bug Report B132926
Visible to All Users

Code Creation - "Declare Property" can lead to uncompilable code

created 16 years ago

Hi,
"Declare Property" and "Declare Property (with backing store)" features correctly insert property declaration into class. However, they do not update list of using statements. This can lead to not compilable code when type of added property can not be resolved because of missing using statement.
Regards, Przemyslaw
Steps to Reproduce:

  1. Open Class2.cs
  2. Invoke "Declare Property" or "Declare Property (with backing store)" on Bar property inside Foo() method body
    Actual Results:
    Class1.Bar property of type List<string> is created, but List<string> can not be resolved
    Expected Results:
    Code compiles without errors.

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.