Reputation: 23811
i just read about the Public
Access Modifier.
Its access levels are
Within the derived classes of that class available within the same assembly.
Outside the class within the same assembly.
Within the derived classes of that class available outside the assembly.
Outside the class outside the assembly.
What does assembly mean here?Can any one give any example
Upvotes: 5
Views: 7096
Reputation: 101748
An assembly is what would correspond to the contents of a single project in Visual Studio, or the contents of a DLL or EXE in built code.
Items with the access level internal
are only visible and accessible to other code within the same assembly.
Upvotes: 3
Reputation: 67326
In this context, usually, it means publicaly available outside the project (.csproj). This is because projects usually define the assembly boundary (when a project is built into a dll or exe).
In constrast, the Internal
access modifier will only allow access inside of a project (or assembly).
Upvotes: 1