Edit and Continue Errors and Warnings (C#)

You have made an edit to a section of code that is not allowed in Visual C# Edit and Continue.

Visual C# Edit and Continue lets you stop program execution in Break mode, make changes to the executing code, and then resume program execution with the newly incorporated changes.

Declarative code edits that affect the public structure of a class are generally prohibited, and some edits that you might make to a method, property body, or private declarations within a class are not allowed. Whenever possible, Edit and Continue marks code that cannot be edited as light gray and displays an error message.

For more information about supported edits in Edit and Continue for Visual C#, see Supported Code Changes (C#). If you need more information about a specific error or warning, you can search or post on the MSDN Visual C# IDE forum.

To correct this error

  1. On the Debug menu, choose Undo to undo the change.


  2. Stop the debugging session, make your edits, and start a new debugging session.

See Also

Edit and Continue (Visual C#)