Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add virtual methods to abstract base classes that implement interfaces using default member implementations #28542

Merged
merged 2 commits into from
Jul 30, 2022

Conversation

ajcvickers
Copy link
Member

Fixes #28516

@ajcvickers ajcvickers requested a review from a team July 29, 2022 11:14
/// <inheritdoc />
public virtual void RemoveAnnotationsHandledByConventions(IAnnotatable annotatable, IDictionary<string, IAnnotation> annotations)
{
switch (annotatable)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this can use a switch expression to remove all the return

@ajcvickers ajcvickers merged commit 7f79784 into main Jul 30, 2022
@ajcvickers ajcvickers deleted the DimDims0728 branch July 30, 2022 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add virtual methods to existing interceptor base classes
3 participants