protected internal access modifier

Here’s how you create a property (though it could be variable, method or I think even class) that can be see by things that subclass the object it belongs to and things that are in the same package:

protected internal object myProperty {
    get { return m_property; }
    set { m_property = value; }

Java/C# access modifier cheat sheet

Posted on 10 Nov 04 by Helen Emerson (last updated on 10 Nov 04).
Filed under .NET