Implementing/Overriding Members
Alt+Insert | Missing Members / Overriding Members
For inherited types, Rider provides two related code generation features:
- Implement missing members implements any interface members or abstract members missing from the current class.
- Override members does the same as Implement missing members, but it also overrides virtual members if applicable.
Normally, you would not need the Implement missing members command because Rider highlights types with non-implemented base members as error and lets you generate the missing members with a quick-fix:
To implement and/or override members
- Set the caret within a class where you would like to implement and/or override members from base types.
- Press Alt+Insert or choose in the main menu.
- In the Generate pop-up menu, select Missing Members / Overriding Members.
- In the Generate dialog that appears, select members to implement and/or override:
- Optionally, use the following controls that are applied to all implemented/overridden members at this point (see next step for guidelines on configuring individual members):
- Click OK to complete the wizard.
Last modified: 11 October 2017