Void virtual methods with no body #7279
Unanswered
iikuzmychov
asked this question in
General
Replies: 1 comment 7 replies
-
The reduced typing just isn't worth it, even with |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Background and Motivation
Quite often, developers encounter the need to create an empty virtual method to allow derived classes to override it only if required. But it is very uncomfortable and ugly looking.
Proposed API
The proposal suggests extending the Roslyn API to allow the declaration of
void
/Task
virtual methods without bodies.Example:
Beta Was this translation helpful? Give feedback.
All reactions