Here is your scenario:
namespace ScreenSystem
{
internal class ScreenManager
{
public string Test { get; set; }
}
}
namespace ScreenSystem
{
public class Screen
{
public ScreenManager Manager
{
get; internal set;
}
}
}
Compiler Output
Inconsistent accessibility: property type 'ScreenSystem.ScreenManager' is less accessible than property 'ScreenSystem.Screen.Manager'
Here are the solutions, depending on what you're trying to do:
- Make the
Screen class internal
- Make the
ScreenManager class public
- Make the
ScreenManager class public and the Screen class internal
- Make the
Screen.Manager property internal (and remove the internal set accessor)
Either one of the above will compile without errors. It really just depends on what you're trying to achieve.