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

Seal private nested classes to avoid unneeded virtual methods #19081

Merged
merged 1 commit into from
Nov 26, 2019

Conversation

ajcvickers
Copy link
Member

Fixes #19066

Also removed GetTypeInfo when it is not needed

@@ -41,7 +41,7 @@ public virtual Expression Process(Expression query)
}

// TODO: For debugging
private class EnumerableVerifyingExpressionVisitor : ExpressionVisitor
private sealed class EnumerableVerifyingExpressionVisitor : ExpressionVisitor
Copy link
Member

Choose a reason for hiding this comment

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

@smitpatel Do you remember what this comment means and whether it is still relevant?

Copy link
Contributor

Choose a reason for hiding this comment

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

We can remove this class. It was to make sure we don't have enumerable methods where queryable should be there. But I believe exception from here won't be useful either way.

Fixes #19066

Also removed `GetTypeInfo` when it is not needed
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.

Seal private classes
3 participants