Internal abstract methods in public abstract class prevent deriving #139
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
-
Given this API:
When a external developer whats to use this from a different assembly and tries to implement the
ExampleBase
class, he/she is unable to implement the internalImplementMe
method. 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