Search This Blog

Wednesday, September 18, 2013

Modifier Protected Internal C#

C# > Keywords > internal

Protected Internal variables/methods are accessible within the same assembly and also from the classes that are derived from this parent class.

Example

public class MyClass 
{
    // Only accessible within the same assembly
    internal static string name = "MyClass";
}