Skip to content

Conversation

@GrabYourPitchforks
Copy link
Member

There are no public or protected ctors for these types, so nobody is able to subclass them. There's no reason for them to be unsealed. Furthermore, once they're sealed, codegen won't need to emit a virtual dispatch pattern when calling the APIs.

/cc @terrajobst, when we had discussed this earlier we concluded that this wouldn't be a breaking change because no instance of a subclassed type could possibly exist. Is there any new thinking on this that I should be aware of?

@jkotas
Copy link
Member

jkotas commented Feb 4, 2020

SortKey as well?

@GrabYourPitchforks
Copy link
Member Author

SortKey as well?

Sorry, should've mentioned this earlier. There's a bug in SortKey that I wanted to address separately, so I'll get another PR out for that (and to remove virtuals at the same time).

@GrabYourPitchforks GrabYourPitchforks merged commit 10e426b into dotnet:master Feb 5, 2020
@GrabYourPitchforks GrabYourPitchforks deleted the remove_virtuals branch February 5, 2020 02:15
@ghost ghost added the will_lock_this label Dec 6, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Jan 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants