Assemblies and Namespace

后端 未结 5 957
别那么骄傲
别那么骄傲 2021-01-18 16:56

Does everything in a single namespace compile into its own assembly?

5条回答
  •  天命终不由人
    2021-01-18 17:13

    Assemblies and namespaces have nothing to do with each other except that there's a generally used convention that the full names of classes in an assembly will match the assembly name (in some way).

    It's strictly a naming convention - as Guffa said, assemblies can define classes for more than one namespace and the classes that exist in a namespace can come from more than one assembly.

提交回复
热议问题