Friday, September 19, 2014

Something I always forget

I just wanted to note it down :)

Access modifiers in C#

public : Access is not restricted.

protected : Access is limited to the containing class or types derived from the containing class.

Internal : Access is limited to the current assembly.
protected internal: Access is limited to the current assembly or types derived from the containing class.


private : Access is limited to the containing type.

No comments:

Post a Comment