iJade
iJade

Reputation: 23811

what does assembly mean in c#

i just read about the Public Access Modifier.

Its access levels are

  1. Within the derived classes of that class available within the same assembly.

  2. Outside the class within the same assembly.

  3. Within the derived classes of that class available outside the assembly.

  4. Outside the class outside the assembly.

What does assembly mean here?Can any one give any example

Upvotes: 5

Views: 7096

Answers (3)

JLRishe
JLRishe

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

Davin Tryon
Davin Tryon

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

Morten Anderson
Morten Anderson

Reputation: 2321

An assembly is a DLL or Exe file

Assembly (CLI)

Upvotes: 6

Related Questions