Bug Report B132925
Visible to All Users

Code Creation - "Add to interface" can lead to uncompilable code

created 16 years ago

Hi,
"Add to interface" feature correctly inserts method declaration into interface. However, it does not update list of using statements in interface file. This can lead to not compilable code. For example return type of added method can not be resolved if its namespace is not listed among using statement.
Regards, Przemyslaw
Steps to Reproduce:

  1. Open Class1.cs
  2. Invoke "Add to Interface: IClass1" for Foo() method
  3. Try to compile solution
    Actual Results:
    IList type is not found for IClass1 interface
    Expected Results:
    Code should compile;
    "using System.Collections;" should be added to top of IClass1.cs or IList should be fully qualified with namespace

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.