Use this space to put some text. Update this text in HTML

468x60 banner ad

Advertise with Us

Powered by Blogger.

Wednesday, 9 March 2016

Difference between Protected and Internal

What the difference between protected and internal? What about "protected internal"?


Protected:
The type or member can be accessed only by code in the same class or struct, or in a class that is derived from that class.

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 any derived class in another assembly. 




No comments :

Post a Comment

Ask a Question?