Internal abstract methods in public abstract class prevent deriving #139
Ynse Hoornenborg (ynsehoornenborg)
started this conversation in
Ideas
Replies: 0 comments
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.
-
Given this API:
When a external developer whats to use this from a different assembly and tries to implement the
ExampleBaseclass, he/she is unable to implement the internalImplementMemethod. This fails compilation, effectively blocking an outside developer from deriving fromExampleBase.I think this is worth writing an Analyzer for, to guard that we don't write such an API in the first place.
Beta Was this translation helpful? Give feedback.
All reactions