Edit and Continue (Visual Basic): Class Member Declaration Edits
This topic applies to:
Pro, Premium, and Ultimate
In general, Edit and Continue supports changes that are made to the bodies of members such as methods and properties while in Break mode. Changes to member declarations, however, are prohibited in most cases. For example, you cannot change the signature or access level of a member, you cannot declare a new non-private method or property, and you cannot completely remove members during Break mode. Specifically, Edit and Continue does not support the following changes:
Shadowing an existing member variable by declaring a global or member variable of the same name in the containing block.
Shadowing a static local variable by declaring a new instance inside a block.
Adding a new, non-private property or method. Adding a Private property or method is allowed.
Adding a new field, unless the field is Private and there are no occurrences of the field name in any active statement.
Adding a new Private field in any class marked with SequentialLayout or ExplicitLayout.
Adding or deleting a constructor.
Removing handlers for an event. Adding an event handler is allowed.
Adding a new overloading property or method, unless the property or method is Private and there are no occurrences of the name in any active statement.
Adding or removing the WithEvents clause on a member variable.
Deleting a member.
Changing a property or method declaration to stop implementing an interface.
Editing any method that uses generics.
Changing the signature or return type of a non-private property or method.
Overriding or shadowing a member in a base class.
Changing the MustInherit or NotOverridable status of a method.
Changing the access modifiers for a property or method.
Changing the type or read-only status of a field.
Changing a public field.
If you want to make one of these changes, you must stop debugging and recompile your project.