Skip to main content

Override Members

Overrides virtual and abstract methods.

Selectable items: members to override.

Options:

  • Property Style

    Values:

    • DefaultBody — generated properties return the value of corresponding properties from the base class or throw a NotImplementedException (selected by default);
    • Auto
    • BackingField.
  • Default body content

    Values:

    • Throw NotImplementedException (selected by default)
    • Call undeclared method
    • Return default value
    • Return default value with TODO comment

Example

The screencast below shows how to use the Override Members action in Declare Menu.

Compare