C# Access Modifier List
This is a quick reminder sheet for the different access modifiers, their descriptions and scope. An access modifier defines which objects, properties and methods can "see" a particular object, property or method.
Adverts Blocked Please disable AdBlocking software and allow me to set cookies so that I can continue providing free content and services.
|public||A public member is accessible from anywhere. This is the least restrictive access modifier.|
|protected||A protected member is accessible from within the class and all derived classes. No access from the outside is permitted.|
|private||A private member is accessible only from within the same class. Not even derived classes can access it.|
|internal||An internal member is accessible from within any part of the same Microsoft .NET-based assembly. You can think of it as public at the assembly level and private from outside the assembly.|
|protected internal||internal protected member is accessible from within the current assembly or from within types derived from the containing class.|
Last updated on: Friday 8th September 2017
There are no comments for this post. Be the first!