Difference between Internal and Protected Internal in C# .Net

Last Reply 9 months ago By pandeyism

Posted 9 months ago

what i know:

Internal:
The type or member can be accessed by any code in the same assembly but not from another assembly.

Protected Internal:
The type or member can be accessed by any code in the same assembly or by derived class of another assembly.

Can anyone explain me this with simple example code.I found this access modifiers bit confusing.So tried to find the simple example code to make it understand but dint find..

Any help will be appreciated.

This question does not have replies that have been liked.