Should classes from the same namespace be kept in the same assembly?
Posted
by
Dan Rasmussen
on Programmers
See other posts from Programmers
or by Dan Rasmussen
Published on 2012-04-14T19:57:12Z
Indexed on
2012/04/14
23:46 UTC
Read the original article
Hit count: 523
For example, ISerializable
and the Serializable
Attribute are both in the System.Runtime.Serialization
namespace, but not the assembly of the same name. On the other hand, DataContract
attributes are in the namespace/assembly System.Runtime.Serialization
.
This causes confusion when a class can have using System.Runtime.Serialization
but still not have reference to the System.Runtime.Serialization
assembly, meaning DataContract
cannot be found.
Should this be avoided in practice, or is it common for namespaces to be split over multiple assemblies? What other issues should one be careful of when doing this?
© Programmers or respective owner