Namespace or Assembly?

后端 未结 9 737
长发绾君心
长发绾君心 2020-12-12 14:20

I am getting very confused between Namespaces and Assemblies. Are System.Data and System.Web Namespaces or Assemblies?

I have noticed these

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 14:49

    The file that you see in GAC is System.Data.dll that is an assembly and that contains namespaces including System.Data. If you view the Reference properties in Visual studio then you will see:

    enter image description here

    Later if you right click on the reference and select view in object browser you will see namespaces in that particular assembly.

    enter image description here

提交回复
热议问题