© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
7 replies
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 }
public class ApiGetOutcome
{// stuff }

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

These are all in a class library which accesses an API.

I don't want
ApiGetOutcome
ApiGetOutcome
visible outside the library, only
ApiGetFileOutcome
ApiGetFileOutcome


I've messed around with
abstract
abstract
and various modifiers, but can't seem to crack it. Would appreciate a steer!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Making a library as accessible for different .NET versions as possible
C#CC# / help
3y ago
❔ Creating a class that takes a Logger for both the class and its base class
C#CC# / help
4y ago
❔ Bind derived class and base class to CollectionView and Picker
C#CC# / help
3y ago
❔ Making a Vending Machine for Class!
C#CC# / help
3y ago