Question: What are the differences between an assembly and a namespace in C# ? An assembly defines a syntactical unit that allows for separate compilation /
What are the differences between an assembly and a namespacein C#
An assembly defines a syntactical unit that allows for separate compilationdeployment whereas a namespaceis a naming encapsulation as it is by design used to define name scopes.
While they both are encapsulation constructs,the assembly is like a package as it relates to name scopes and the namespace is used to connect friends like in C
An assembly is designed only to allow for deploying code and as such is not an encapsulation construct whereas namespaces are.
A namespace defines a logically separate unit of compilation whereas an assembly is a packaging tool for separating name scopes.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
