Modifier for a class you want as a base class only and making not accessible to external assemblies
I have a base class for other classes:
and I inherit it thus:
These are all in a class library which accesses an API.
I don't want
ApiGetOutcome
visible outside the library, only ApiGetFileOutcome
I've messed around with abstract
and various modifiers, but can't seem to crack it. Would appreciate a steer!2 Replies
Making it non-public would prevent the consumer from doing
that's why it's impossible
thanks folks
I tried the below (as it seemed liek the best option) but it didn't hide
ApiGetOutcome
to external assemblies:
Sorry I'm being dumb - what specifically are you meaning by the "IDE" - designer view, code view? I'm talking it doesn't hide the Class in the VS code editor for the external assembly
Ah - good point. Abstract may be the best option, as VS is clear pre-compile that you can't new it up
Good point + food for thought. Thanks to both of you for your help