C#C
C#2y ago
stigzler

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:
public class ApiGetOutcome
{// stuff }

and I inherit it thus:
public class ApiGetFileOutcome: ApiGetOutcome
{// stuff }

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!
Was this page helpful?